Hello Everyone,
Please am in need of help.
I am trying to use a previously published logistic regression equation:
Pr = 1/(1 + e-x), where X= -10.201 +0.01 x htg2 + 0.082 x Obes3
on a different dataset.
I tried the following code:
matrix input b = (-10.201, 0.01, 0.082)
matrix colnames b = _cons htg2 Obes3
matrix X = (-10.201, +0.01*htg2, +0.082*Obes3)
but it did not work.
Kindly help please.
Thanks.
Related Posts with Input pre-defined logistic regression equation in stata
winsor or truncate variable into a dummy variableGreetings everyone, is there any way I can use stata to get variables are winsorized so that the la…
How can i plot estimates of 3 different models (and each model has multiple estimates for time observations)?Hi everyone. I'm running 3 foreach loops to estimate 3 different models (they share some coefficient…
Exporting a table to LatexHi everyone, I have the following code: table prov immig sex if inlist(immig,1,2) and I am trying …
Reversing scale for variables like life expectancy, enrollment ratesHello wonderful Stata helpers, I know this is less Stata-specific and more conceptual, but I would a…
Interacting with stata temporary variables within mata functionsI am attempting to pass a value within a mata function to a stata temporary variable in an ado file.…
Subscribe to:
Post Comments (Atom)
0 Response to Input pre-defined logistic regression equation in stata
Post a Comment