I would like to know what is the difference between using svyglm or weighted glm .
For instance:
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 a design sample 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 of using M2 ( svyglm ). What can I use to compare models like stepwise for glm model?
Thank you Natalya
Natuk source share