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
in REML, how to get random coefficients Hi. I want to get the random coefficients(b_ijt) of year dummy variables(D_t) from the equation be…
asdoc with Chinese labelDear All, How can I output the correlation matrix into Word with a "Chinese" label using (ssc instal…
import csv delimiter problem, strings squeeze togetherDear Statalists, When I use: Code: import delimited using x.csv, clear delim(",") varn(nonames) …
Customizing value labels with encode or related commandsHello: I am trying to encode str var into an encoded var_code, which is typically a simple command..…
Word scores when people add or drop forenames, while keeping at least twoI've been matching entire electoral rolls in Stata 16. My sixth joinby is on first forename, surname…
Subscribe to:
Post Comments (Atom)
0 Response to Input pre-defined logistic regression equation in stata
Post a Comment