Dear Ista Zahn-2, If you can give me some advice, I really appreciate it. I have been working on it for days. it seems hard for some novice of R like me to write flexible functions myself.
This is for my dissertation. CSE and WSE are two scales of the same construct. The sampling strategy I wanted above allows me check how the items of these two scales vary within person and across person. Also, I added another rule: draw 1000 random samples... Again, Thanks! Wallace -- View this message in context: http://r.789695.n4.nabble.com/New-Sampling-question-tp3047885p3048948.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.