Displaying 1 result from an estimated 1 matches for "sample_dat".
Did you mean:
sample_data
2008 Mar 06
2
extracting a percentage of data by random
Hello Gurus:
If I have a dataframe with one of the variables called "age" for example, and I want to extract a random 10% of the observations from each "age" group of the entire data frame. Do I have to double loop to split the data and then loop again to assign random numbers? Or is there a better way to do this?
Thanks!
Karen