hello I've been reading about latent class analysis with ordinal data
I've read a lot of resources but they all seem to deal with either binary categorical data or continuous data
The stata help says that it can work with ordinal data
If I have a variable which is a subset of a patient-reported outcome questionnaire in the post-operative period, I have 4 selected questions and therefore 4 variables
-varq1-
-varq2-
-varq3-
-varq4-
For each varq* 5 points is the best outcome, 0 points is the worst outcome
I want to check the trajectory from the pre-operative state to the post-operative state in terms of 3 - 6 classes which hopefully will reflect the early and quick improvers all the way to late slow improvers
I am using this code
Firstly, how does stata just need the 'ologit' to assume it's ordinal data?
Secondly, how can one take into consideration and incorporate into the code the 'preoperative state questions' if I have equally the same variables -varq*- for the preopstate: -varqpreop*-
I've read a lot of resources but they all seem to deal with either binary categorical data or continuous data
The stata help says that it can work with ordinal data
If I have a variable which is a subset of a patient-reported outcome questionnaire in the post-operative period, I have 4 selected questions and therefore 4 variables
-varq1-
-varq2-
-varq3-
-varq4-
For each varq* 5 points is the best outcome, 0 points is the worst outcome
I want to check the trajectory from the pre-operative state to the post-operative state in terms of 3 - 6 classes which hopefully will reflect the early and quick improvers all the way to late slow improvers
I am using this code
Code:
///takes into consideration only postoperative questions gsem (varq1 varq2 var3 var4 <-ologit), lclass(C 3) /// compare aic bic estimates storethreeclass estimates lcmean
Firstly, how does stata just need the 'ologit' to assume it's ordinal data?
Secondly, how can one take into consideration and incorporate into the code the 'preoperative state questions' if I have equally the same variables -varq*- for the preopstate: -varqpreop*-
Comment