Thanks But it seems like you don't get my problem. Do you mean that there is something wrong with the code as it seems like what you are doing is suggesting different ways to write a code. Will i get to use the variable that have been name previously like if i want to calculate the standard deviation of stratum hypermarket in a sample not population, the first start is to check if it would help me is to check the length() of different levels if it is not same as that of the original data Best Regards I rest my case, i might dream it
--- On Thu, 1/10/09, Bernardo Rangel Tura <t...@centroin.com.br> wrote: From: Bernardo Rangel Tura <t...@centroin.com.br> Subject: Re: [R] How to use Subpopulation data? To: "r-help" <r-h...@stat.math.ethz.ch> Date: Thursday, 1 October, 2009, 10:18 PM 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 ______________________________________________ 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. [[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.