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.