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
Using Reshape to sort wide into longHello Everyone, I want to convert my wide data into a long panel data for currency data. Currently…
Whether can I do two mean difference tests simultanuously?Dear Statalists, My dataset has 4 variables A, B, C and D. I would like to test mean difference of …
How to Clean String variable with errors in data entryHi Stata Forum, I am a relatively new user to STATA. I am working on a project that uses data scrap…
Using loop to replace values in a variableDear All, I am new to loop. Is there a way I can replace the missing values with the number 1 each …
Is adoupdate, update stallig for anyone else? Advice/For the first time, I'm having trouble with adoupdate, update today. It goes through identifying wha…
Subscribe to:
Post Comments (Atom)
0 Response to SEM and nonlinear regression
Post a Comment