Hi,
I am using gsem and I want to use "if statement" so that I include some observations for my analysis. Can you please help me with this. I am getting "not sorted" error.
The command I am using is : gsem (y1 <- x1 x2 x3, cloglog)(y2 <- x1 x2 x3, cloglog) if newvar==1, covstructure(e._En, unstructured) vce(cluster ID) nocapslatent
Related Posts with Using if statement with gsem
Stata code wighted census data for PCAHello all, I am new to the Stata Community and working on the 2016 Canadian census of population mi…
Global macrosI was looking at some guide and saw them using the commands cd, global datadir, global dirresults. I…
Individual level data, Clustering Standard Error at city level, IV regression need syntax helpSay your data is at individual level, instrument and independent variable at city level, data on 2 y…
Generate a new variableDear all, I hope you can help me. I would like to generate a new variables based on values of anot…
Plot interaction effect after stcox with tvc?Since proportional hazards assumption is violated, I use tvc option to estimate my model, which surp…
Subscribe to:
Post Comments (Atom)
0 Response to Using if statement with gsem
Post a Comment