Re: [R] Sample

From: Raphael Saldanha <saldanha.plangeo_at_gmail.com>
Date: Sat, 26 Jul 2008 18:30:47 -0300

Thanks everybody!

Using the package *sampling *, for another aproach:

> population

         0-100 100-250 250+
Região 1     9      18   16
Região 2    33      25   27
Região 3    21      19   17
Região 4    25      22   19
Região 5    40      39   19
Região 6    77      45   29

> sample_design <- srswor(3,6)

> data_sampled <- getdata(population, sample_design)

> data_sampled

         ID_unit 0-100 100-250 250+
Região 4       4    25      22   19
Região 5       5    40      39   19
Região 6       6    77      45   29


-- 
Raphael Saldanha
UFJF - BRAZIL
saldanha.plangeo_at_gmail.com


Groucho Marx  - "A hospital bed is a parked taxi with the meter running."

	[[alternative HTML version deleted]]


______________________________________________ R-help_at_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.

Received on Sat 26 Jul 2008 - 21:40:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 Jul 2008 - 22:32:58 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive