Hello
Can you you help please.
I am trying to set up forward stepwise logistic regression (LR) using NHANES 2009-2010 data. My dependent variable is (Y) is anyohpv (Any oral hpv). I have 20 independent variables (X)
I have reviewed the NHANES website but can't find any information on setting up forward stepwise LR model other than the the simple logistic regression which continues to add each independent variables (see below example). Is this method sufficient to use?
Also I would like to use good-of-fit test but understand I cannot use Hosmer-Lemeshow due to survey sampling design. Can you please offer any help with command/s I could use after fitting the forward stepwise LR model please. Any help is greatly appreciated! Thank you Dianne
Commands used in Stata for forward stepwise LR model
xi: svy, vce(linearized): logistic anyohpv
xi: svy, vce(linearized): logistic anyohpv i.gender2
xi: svy, vce(linearized): logistic anyohpv i.gender2 i.ridreth1
xi: svy, vce(linearized): logistic anyohpv i.gender2 i.ridreth1 i.education
Can you you help please.
I am trying to set up forward stepwise logistic regression (LR) using NHANES 2009-2010 data. My dependent variable is (Y) is anyohpv (Any oral hpv). I have 20 independent variables (X)
I have reviewed the NHANES website but can't find any information on setting up forward stepwise LR model other than the the simple logistic regression which continues to add each independent variables (see below example). Is this method sufficient to use?
Also I would like to use good-of-fit test but understand I cannot use Hosmer-Lemeshow due to survey sampling design. Can you please offer any help with command/s I could use after fitting the forward stepwise LR model please. Any help is greatly appreciated! Thank you Dianne
Commands used in Stata for forward stepwise LR model
xi: svy, vce(linearized): logistic anyohpv
xi: svy, vce(linearized): logistic anyohpv i.gender2
xi: svy, vce(linearized): logistic anyohpv i.gender2 i.ridreth1
xi: svy, vce(linearized): logistic anyohpv i.gender2 i.ridreth1 i.education
Comment