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
Create for each time period the median of the 350 biggest valuesHello everyone, I am currently sitting on an issue regarding taking the median of the 350 highest v…
Invalid lvalHi, I am new to mata, and I'm replicating an old code that uses it. Unfortunately, I'm getting the …
How to get the value of the first occurence on the first rowI have a data in this format below. I want to generate another column (X) that gave me the value of …
multiple imputation error after MI Estimate logistic regressionHello: Working on MI Everything works up to the MI estimate. See Error below Have been to the Stata …
ivreghdfe: how to first-stage regression predicted valueshello, i'm using ivreghdfe, and i'm interested in obtained predicted values of the endogenous variab…
Subscribe to:
Post Comments (Atom)
0 Response to Input pre-defined logistic regression equation in stata
Post a Comment