I would like to know what the difference is between using svyglm
or a weighted glm
.
For example:
M1 = glm(formula = yy ~ age + gender + country ,
family = binomial(link = "probit"),
data = P2013,
subset = (P2013$E27>=14 & P2013$E27<=17),
weights = P2013$PESOANO)
or define sample design as:
diseño = svydesign(id =~ NUMERO,
strata =~ ESTRATOGEO,
data = p2013,
weights = P2013$PESOANO)
diseño_per_1417 = subset(diseño, (P2013$E27>=14 & P2013$E27<=17))
and then use svyglm
:
M2 = svyglm(formula = yy ~ age + gender + country,
family = quasibinomial(link = "probit"),
data = P2013,
subset = (stratum=!0),
design = diseño_per_1417)
In the case that I use M2
(svyglm
). What can I use to compare models like stepwise does for a glm model?
Thanks, Natalia