Performing a manual backward stepwise logistic regression in Stata [message #10711] |
Mon, 05 September 2016 02:22 |
npolle
Messages: 6 Registered: August 2016 Location: MOMBASA, KENYA
|
Member |
|
|
I am new in using stata and interested in using the 2011 Uganda Demographic and Health Survey to determine prevalence of disability and associated risk factors. I need assistance in performing a manual backward stepwise logistic regression in Stata. I have read that in performing a manual backward stepwise logistic regression in Stata, I first need to run the full model (with all covariates), followed by testing all variables for statistical significance at p<0.05 starting with the bottom variable.
I need assistance on how to test the variables for statistical significance. This is how I approached it, however the test command does not run.
*GENERATING THE SUBPOPULATION
generate overfive=.
replace overfive = 1 if hv105>=5 & hv105<96 & hv103==1
replace overfive = 0 if overfive!=1
*CONDUCTING MULTIVARIATE LOGISTICS REGRESSION
*Where 'onedisability' is the variable for difficulty in at least one functional
area
svy, subpop (overfive): logistic onedisability ///
hv104 ///
hv106 ///
hv025 ///
hv270 ///
hv024
test hv024
Thank you
|
|
|