I have 5 ordinal variables representing a patient’s ability to do a separate task scored from 1-5.
5 being able to, 1 (not able too)
These tasks were measured pre-procedure and post procedure
(Each task eg going up stairs is represented as qx in the variables below, each qx is a task)
Variables are: preopq1 – postopq1 – preopq2- postopq2- preopq3 – postopq3- preopq4 – postopq4 – preopq5 – postopq5
Aim: To determine Early improvers, late improvers
Problem:
1) For all qx I get the following error: -initial values not feasible-
I have tried the following
Using the stata help file (https://www.stata.com/manuals/semintro12.pdf) I tried the following Modifications (none worked):
I have tried all the above with each task variable
-postopq2 preopq2-
postopq3 – preopq3
postopq4 preopq4
postop5 preopq5
The only method that worked was combining all the task variables together
However this took a total of 5 hrs to run which showed the model isn’t good enough, no clear distant class (see attachment)
-lcprob-
No output generated after -lcmean after a total of 13 hours (still running)
I tried to run with C 5, but too slow (kept it going for a whole night and noconvergence so it kept producing iterations without any output, so pressed break)
I also have tried reducing my dataset:

5 being able to, 1 (not able too)
These tasks were measured pre-procedure and post procedure
(Each task eg going up stairs is represented as qx in the variables below, each qx is a task)
Variables are: preopq1 – postopq1 – preopq2- postopq2- preopq3 – postopq3- preopq4 – postopq4 – preopq5 – postopq5
Aim: To determine Early improvers, late improvers
Problem:
1) For all qx I get the following error: -initial values not feasible-
I have tried the following
Code:
gsem(postopq1 preopq1 <-, ologit), lclass(C 3)
Code:
///Used iterations modification – selected 12 is this when i saw values change gsem(postopq1 preopq1 <-, ologit), iterate(12) lclass(C 3) /// Does not produce output at iterate(12) but instead proceeds to //initial values not feasible ////Tried the following techniques: gsem(postopq1 preopq1 <-, ologit), intmethod(ghermite) lclass(C 3) gsem(postopq1 preopq1 <-, ologit), intmethod(mvaghermite) lclass(C 3) gsem(postopq1 preopq1 <-, ologit), intmethod(laplace) lclass(C 3) gsem(postopq1 preopq1 <-, ologit), intmethod(mvcaghermite) lclass(C 3) gsem(postopq1 preopq1 <-, ologit) lclass(C 3) vsquish nodvheader noheader nolog startvalues(randomid, draw(20)) emopts(iterate(10)) ///error: cannot compute an improvement – discontinuous region encountered
-postopq2 preopq2-
postopq3 – preopq3
postopq4 preopq4
postop5 preopq5
The only method that worked was combining all the task variables together
Code:
gsem (postopq5 postopq4 postopq3 postopq2 postopq1 <- ologit) (C <- preopq5 preopq4 preopq3 preop3 preop2 preopq1), lclass(C 3)
-lcprob-
No output generated after -lcmean after a total of 13 hours (still running)
I tried to run with C 5, but too slow (kept it going for a whole night and noconvergence so it kept producing iterations without any output, so pressed break)
I also have tried reducing my dataset:
Code:
sample 10 by(procedure) gsem (postopq1 preopq1 <-,ologit), class (C 3) ///i ALSO TRIED: contract preopq1 preopq3 preopq4 preopq5 postopq1 postopq2 postopq3 postopq4 postopq5, freq(fw) gsem (postopq1 preopq1 <-,ologit), class (C 3) ///initial values not feasible
Comment