Hi, this is my first post here. I'm using Stata 14.0 on Windows 7 SP1. I'm trying to run a CFA, using the SEM-builder, for 6 indicators of being bullied as a one-factor solution (n=1323). The indicators are all ordinal (5-scale) variables. A normal CFA (identity-link funtion) works fine, but as the data are very skewed I tried running it with a negative binomial/log link function. As this didn't converge, I tried specifying the number of iterations to see if I could see what was going on, but Stata kept on iterating (i.e. the iterations command didn't seem to work). The code is below (copied from the command window, after I'd used the builder) but with the iterations command that I added in. I'd be hugely grateful for any tips/advice.
Cheers.
Code:
gsem (Bullied-> v53d, family(nbinomial mean) link(log)) /// (Bullied -> v54a, family(nbinomial mean) link(log)) /// (Bullied -> v54e, family(nbinomial mean) link(log)) /// (Bullied -> v55a, family(nbinomial mean) link(log)) /// (Bullied -> v55b, family(nbinomial mean) link(log)) /// (Bullied -> v55c, family(nbinomial mean) link(log)), /// latent(Bullied) nocapslatent iterate(20)
Comment