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
How to regress return difference between different periods?Dear stata users, I am now regress anomalies of the long-short strategy during different investor …
Choosing the right estimator for a fixed effects model with T > NDear statalisters This is my first post, but I have followed the forum for years so I hope that I f…
Merge a variabel into another datasetHello all, Attached below is a simple example I have made up so I can fully understand this: Lets s…
Generate dummy variables using loopsHi everyone, I am trying to generate a set of dummies for two variables (using the same set of dumm…
Removing trailing dashes in the stringHello! I am extracting zip codes from the string variable called adr by using the following command…
Subscribe to:
Post Comments (Atom)
0 Response to Using if statement with gsem
Post a Comment