Thanks
 
i know, i was just simplying since i have a bigger set,
 
But the problem is not that.The problem is i have a sampled data and i need to use the results but when i only get the population results. How do i get the legnths,summary,etc of my sampled data not the population? 

--- On Thu, 1/10/09, Bernardo Rangel Tura <tura@centroin.com.br> wrote:


From: Bernardo Rangel Tura <tura@centroin.com.br>
Subject: Re: [R] How to use Subpopulation data?
To: "KABELI MEFANE" <kabelimefane@yahoo.co.uk>
Cc: R-help@r-project.org
Date: Thursday, 1 October, 2009, 11:24 AM


On Thu, 2009-10-01 at 10:06 +0000, KABELI MEFANE wrote:
> Dear Helpers
> 
> I have a sample frame and i have sampled from it using three methods and now i want to calculate the statistics but i only get the population parameters.
> 
> H <- matrix(rnorm(100, mean=50000, sd=5000))
> sampleframe=data.frame(type=c(rep("H",100)),value=c(H))
> sampleframe
> 
> str=strata(sampleframe,c("type"),size=c(20,), method="srswor")

Try using

str=strata(sampleframe,c("type"),size=20, method="srswor")

or better

str <- strata(sampleframe,c("type"),size=20, method="srswor")

-- 
Bernardo Rangel Tura, M.D,MPH,Ph.D
National Institute of Cardiology
Brazil




      
	[[alternative HTML version deleted]]


