Re: [R] Stratified Random Sampling Proportional to Size

2013-04-29 Thread Lopez, Dan
t: Re: [R] Stratified Random Sampling Proportional to Size a) Please post plain text b) Please make reproducible examples (e.g. telling us how you accessed a database that we have no access to is not helpful). See ?head, ?dput and [1] c) I don't know anything about the sampling package or the s

Re: [R] Stratified Random Sampling Proportional to Size

2013-04-29 Thread William Dunlap
tibco.com > -Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Thomas Lumley > Sent: Sunday, April 28, 2013 1:31 PM > To: Jeff Newmiller > Cc: R help (r-help@r-project.org) > Subject: Re: [R] Stratified Ra

Re: [R] Stratified Random Sampling Proportional to Size

2013-04-28 Thread Thomas Lumley
It looks as though you can't sample zero observations from a stratum. If you take the example on the help page and change one of the sample sizes to zero you get exactly the same error. >From the fact that there isn't a more explicit error message, I would guess that the author just never conside

Re: [R] Stratified Random Sampling Proportional to Size

2013-04-28 Thread Jeff Newmiller
a) Please post plain text b) Please make reproducible examples (e.g. telling us how you accessed a database that we have no access to is not helpful). See ?head, ?dput and [1] c) I don't know anything about the sampling package or the strata function, but I would recommend eliminating the ro

[R] Stratified Random Sampling Proportional to Size

2013-04-26 Thread Lopez, Dan
Hello R Experts, I kindly request your assistance on figuring out how to get a stratified random sampling proportional to 100. Below is my r code showing what I did and the error I'm getting with sampling::strata # FIRST I summarized count of records by the two variables I want to use as stra

Re: [R] Stratified random sampling

2010-03-25 Thread Girish A.R.
Check out package survey cheers, -Girish -- View this message in context: http://n4.nabble.com/Stratified-random-sampling-tp1690475p1690730.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://st

[R] Stratified random sampling

2010-03-25 Thread wesley mathew
Dear All Could you please tell me, is there any package or function for finding Stratified random samples from the population ? Thanks in advance Kind Regards Wesley C Mathew [[alternative HTML version deleted]] __ R-help@r-project.org mailin

Re: [R] Stratified random sampling?

2009-06-18 Thread Dylan Beaudette
On Thursday 18 June 2009, Jonathan Greenberg wrote: > Rers: > > What is the preferred library/function for doing stratified random > sampling from a dataset, given I want to control the number of samples > (rather than the proportion of samples) per strata? Thanks! > > --j Hi Jonathan! Check

[R] Stratified random sampling?

2009-06-18 Thread Jonathan Greenberg
Rers: What is the preferred library/function for doing stratified random sampling from a dataset, given I want to control the number of samples (rather than the proportion of samples) per strata? Thanks! --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technolog