Hello everyone.
Earlier, I used 'Stata' to build non-linear regressions.
Recently, I started using 'SEM' to solve new problems. I understood a bit the features that I need in 'SEM'. But I do not understand how to do what I did earlier in 'SEM'.
For example
To build a non-linear regression, I enter:
nl( Y = {c}+{x1}*x1+{x2}*x2+{x3}*x3+{x4}*x4)
In SEM :
sem (Y <- x1 x2 x3 x4)
In another case:
nl( Y = {c}+{x1}*ln(x1)+{x2}*sqrt(x2)+{x3}*x3+{x3}*x3*{x4} *x4)
But i don't know how to use 'sqrt', 'ln', and multiplication x3*x4 in SEM.
I read many different articles and topics, tried a lot of command options, but without success. Maybe I missed something or misunderstood, I apologize. But I hope for your help.
Thank you.
Related Posts with SEM and nonlinear regression
Income Elasticity with Logit ModelHi, This is my model: Code: logit smoker lninc Where lninc, is the log transformation of the in…
xtabond2Dear all, I am running some dynamic panel data with xtabond2, and often the coefficients of the lagg…
linear mixed model accounting for correlated observationsHi I am looking for some advice regarding the appropriate code to use to assess agreement between 5 …
over-identify testwhen i run the command (estat overid) i got the following error message (no overidentifying restrict…
STATA SE 13, how to get r square after mi estimateDear STATA users, is there a way to obtain R square (model fit statistics) after conducting mice? I…
Subscribe to:
Post Comments (Atom)
0 Response to SEM and nonlinear regression
Post a Comment