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
Writing a simple program to calculate ANOVA directly. program anova args n1 m1 s1 n2 m2 s2 n3 m3 s3 scalar k=3 gen xbar=(n1*m1+n2*m2+n3*m3)/(n1+n2+n3) g…
Gravity Model endogeneityHi, I used a gravity model to estimate the effects of Regional Trade Agreement using the PPML …
PPML help!!Hi, I am studying the flows of oranges between countries. How could I use PPML, what is the differen…
Avoiding dummy variable trap using "tab, gen" commandHello everyone, I created year dummy variables for my dataset using the command tab YearEffective,…
PPML R-squared to highHi, I estimated a gravity model with the PPML estimator and fixed effects. However, the R-squared i…
Subscribe to:
Post Comments (Atom)
0 Response to Using if statement with gsem
Post a Comment