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
Ali UbaidI am trying Heckman two-step analysis for remittances and agriculture investment based on survey dat…
generating change variables in panel-structureDear all, I would like check whether I can overwrite the missing deprivation variable (dep) with the…
Getting started with STATAHey there, I need to write an essay for which I need Stata. To be honest I never had any experience…
optimize_init_technique(S, "nr")Hi, I have a methodological question about how optimize works with the Newton-Raphson algorithm. A…
Splitting a string varaibles that has a spaceHello all, I'm trying to split the first variable of the dataset below in two variables. As you can…
Subscribe to:
Post Comments (Atom)
0 Response to Input pre-defined logistic regression equation in stata
Post a Comment