I’m running latent class analysis on a dataset of 285,000 observations. Not a massive dataset.
I’ve got 6 variables
3 variables postopvarq* each of which are ordinal data from 1-5 . These are 3 separate questions of the individual ability to do a task eg go up the stairs measured after the procedure
3 variables preopq* each of which are ordinal data from 1-5 . These the same 3 questions as above of the individual ability to do a task eg go up the stairs measured BEFORE the procedure
Aim; To assess the trajectories early and fast improvers vs late improvers vs no improvers using latent class analysis
Then after advice from this forum, I decided to try this out . With the intention that the preop score may determine the class. This takes 5 hours to run
gsem (postopvarq1 postopvarq2 postopvarq3 <- , ologit) (C <- preopqvar1 preopqvar2 preopqvar3), lclass(C 3)
However, after discussion with another statistician, advised me to use this syntax that I had initially used . As you can see the -preopq*- are included within the model. The principle behind it is to plot the graphs and see the trajectory preop to postop
This takes at least 6 hrs to run… still going!
Question
I’ve got 6 variables
3 variables postopvarq* each of which are ordinal data from 1-5 . These are 3 separate questions of the individual ability to do a task eg go up the stairs measured after the procedure
3 variables preopq* each of which are ordinal data from 1-5 . These the same 3 questions as above of the individual ability to do a task eg go up the stairs measured BEFORE the procedure
Aim; To assess the trajectories early and fast improvers vs late improvers vs no improvers using latent class analysis
Then after advice from this forum, I decided to try this out . With the intention that the preop score may determine the class. This takes 5 hours to run
gsem (postopvarq1 postopvarq2 postopvarq3 <- , ologit) (C <- preopqvar1 preopqvar2 preopqvar3), lclass(C 3)
However, after discussion with another statistician, advised me to use this syntax that I had initially used . As you can see the -preopq*- are included within the model. The principle behind it is to plot the graphs and see the trajectory preop to postop
Code:
gsem (postopvarq1 postopvarq2 postopvarq3 varq4 PREopq1 preopq2 preopq3 preopq4<- ), ologit lclass(C 3)
This takes at least 6 hrs to run… still going!
Question
- Which would be the right way of doing it ?
- Is there anyway you could make no 2 go faster (at 61 iterations!)
Comment