Dear Users,
I'm using the Zelig package in R to predict the HIV prevalence. In others words, I want to estimate the model that regresses the HIV status (HIV+ or HIV-) on the sex (male, female).
I have a problem of getting the residuals and the predicted values of the models with and without covariates respectively :
resu1 <- zelig(HIV~1,model = "logit.survey",weights = ~Weight,data=PREVATOUT)
resu2 <- zelig(HIV~Sex,model = "logit.survey",weights = ~Weight,data=PREVATOUT)
where HIV is a dichotomous indicator (HIV=0 or HIV=1), Weight is the survey sampling weight, Sex (Sex=1 for men and Sex=2 for female) and PREVATOUT is my dataset containing other covariates. How can I get the residuals and the predicted values of the models?
Any idea?
Thanks.
***************************************
Emmanuel BARANKANIRA
Phone : (+33)623575806
E-mail : baremma2002(a)yahoo.fr
France
***************************************