The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Performing a manual backward stepwise logistic regression in Stata
Performing a manual backward stepwise logistic regression in Stata [message #10711] Mon, 05 September 2016 02:22 Go to previous message
npolle is currently offline  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
 
Read Message
Read Message
Read Message
Previous Topic: Svy command, r(2000) error message, NFHS-3 India
Next Topic: Dropping observations
Goto Forum:
  


Current Time: Mon Sep 2 01:20:13 Coordinated Universal Time 2024