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")
sample.strat<-getdata(sampleframe,str)
sample.strat
length(H)
i get: 
 
length(H)
[1] 100

Desire to get:
length(H)
[1] 20
 
Best Regards


 
 


      
        [[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