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}}
______________________________________________
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.