Hi R-users!
Can anyone tell me what this error message refers to exactly 

> a<-c('m','f','m')
> b<-c(1:3)
> st<-c(1:3)
> data.frame(a,b,st)
  a b st
1 m 1  1
2 f 2  2
3 m 3  3
> data.frame(a,b,st)->l
> p<-svydesign(ids=~1, data=l)
> pop<-c('(intercept)'=100, st1=10,st2=20)
> calibrate(p,~st, pop)
Error in regcalibrate.survey.design2(design, formula, population, 
aggregate.stage = aggregate.stage,  : 
        Population and sample totals are not the same length.

Thank you and have a great day!

       
---------------------------------

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to