[R] Stratified random sample

Rolf Turner r.turner at auckland.ac.nz
Thu Jul 17 02:58:00 CEST 2008


On 17/07/2008, at 11:45 AM, lamack lamack wrote:

>
> Dear all, I have two vector:
>  strata response1   11   21   32   12   22   3.  ..  ..  .10  110   
> 210  3.  ..  ..  .100  1100  2100  3
> I need to get a stratified random sample of size = 100, such that:
> if I select response = 1 in strata 1 then I need sample 2 or 3 in  
> strata 2
>
> if I select response = 2 in strata 2 then I need to sample 1 or 3  
> in strata 3
> if I select response = 3 in strata 2 then I need to sample 1 or 2  
> in strata 3
> and so on. Please, how can I do this?

You really should do your own homework.

	cheers,

		Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}



More information about the R-help mailing list