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
Regression - No Observations r(2000) no missing observations, no stringsHi! I am attempting to run a linear regression but keep getting an r(2000) error - no observations. …
Invalid Syntax: Correcting for Heteroskedasticity & Autocorrelation using Fixed effectsDear Statalisterss May you kindly assist me with this question. Through this forum i have learnt ho…
Alternatives to ttest using svy? Comparison of means between male and female respondentsI am using Stata 14.1, I have a dataset obtained via survey, where I have circa. 10 variables which …
Trying to calculate an indexHi, I'm aware that the -duncan- command exists, but I need to do this manually for some other reaso…
Converting data in national currencies in panel data set into one common currencyHello everyone, I am currently working on my Master Thesis and I would need a help with conversion …
Subscribe to:
Post Comments (Atom)
0 Response to Input pre-defined logistic regression equation in stata
Post a Comment