Displaying 2 results from an estimated 2 matches for "size_hh".
2007 Sep 06
3
Survey package
...ying to use the Survey package for a stratified sample which has 4 criteria on which the stratification is based. I would like to get the corrected weights and for every element i get a weight of 1
E.g: tipping
design <- svydesign (id=~1, strata= ~regiune + size_loc + age_rec_hhh + size_hh, data= tabel)
and then weights(design)
gives me: 1,1,1,1,1,1,1,1,1,1,1,........... for each element
Why is that? What do i do wrong?
Thank you!
---------------------------------
[[alternative HTML version deleted]]
2007 Sep 06
1
the survey package
...design<- svydesign(ids=~0, strata= c(~regiune,~size_loc), data=tabel) # for 2 criteria
and got this error
Error in strata[, 1] : incorrect number of dimensions
My "tabel" looks like this:
cod cantitate pondere regiune size_loc size_hh age_hhh
740 5977.604 0.9962673 1 1 3 52
742 13879.362 0.8674601 1 1 3 42
743 7876.322 0.9845403 1 1...