[R] How to use Subpopulation data?
Bernardo Rangel Tura
tura at centroin.com.br
Thu Oct 1 23:18:20 CEST 2009
On Thu, 2009-10-01 at 13:34 +0000, KABELI MEFANE wrote:
> ## package sampling
>
> stra=strata(sampleframe,c("type","value","rating"),size=c(20,80,200,300,400),
> method="srswor")
> sample.strat<-getdata(sampleframe,stra)
>
> sample.strat
>
Try:
stra<-strata(sampleframe,size=c(20,80,200,300,400),method="srswor")
sample.strat<-getdata(sampleframe,stra)
sample.strat
--
Bernardo Rangel Tura, M.D,MPH,Ph.D
National Institute of Cardiology
Brazil
More information about the R-help
mailing list