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
Extracting the first number from a numeric variable into a new variableHi, I would like to extract the first number of another variable into a new variable. (And an addit…
'' xthenreg'' for dynamic threshold modelsDear all it has been 8 months now since we got the new stata command for a dynamic threshold model …
Help on Generating a new variable that combines 2 variablesHi, I have the attached dataset which I have imported from Excel into Stata. I haven't made any ch…
Quantile regressions-panel data, Pre-reqsHi Joao Santos Silva I am worried about two things in quantile regressions for panel data. 1. My d…
Shading between two lines in a graphDear Statalist, I'm trying to create a shaded area between the two borders of the confidence interv…
Subscribe to:
Post Comments (Atom)
0 Response to Using if statement with gsem
Post a Comment