search for: datsample

Displaying 1 result from an estimated 1 matches for "datsample".

Did you mean: datasample
2002 Jun 06
1
sampling from data frame
Hello, after searching through the archives and not finding a thread that answers this question, I thought I'd pass it on to the list. Given a data frame and given a factor variable that assigns a class to each case in the data frame, what is the most efficient way to sample a given number of cases from each class? I've found a roundabout solution that works as follows: for each class: