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
Drop top row with variable names/labels when outputting correlation matrix with esstabI am outputting a correlation matrix into a .tex file, to present as a table in Latex. I'm using est…
Collapse 2 different ways yields different meansMy dataset has 120,000 observations of air pollution (variable name PM25) data recorded by 21 people…
How to fix the fracmented result tableI ran a correlation command and got a fragmented table. How can I fix it into the same tableArray …
Creation of quintile variable in a stataHi all, I have a data in my stata for Realassets variable,EXPDUM which is Export dummy equal 1 if fi…
fixed effects survey data two stages with different questionariesMy data set has two waves of survey data in a questionnaire form and test scores for the same subjec…
Subscribe to:
Post Comments (Atom)
0 Response to Input pre-defined logistic regression equation in stata
Post a Comment