Description Usage Arguments Examples
This returns an oversampling of "boys", the returned object from "prep_data()".
1 2 | sample_data(data_in = NULL, tot_subj = 1000, seed = 101,
timepoints = as.numeric(names(data_in[, -1])))
|
data_in |
an object returned from prep_data() |
tot_subj |
total number of subjects sampled with replacement – numeric, multiple of 100. |
seed |
an integer for set.seed(seed) to assist reproducible simulations |
1 2 3 | d<-prep_data()
head(d)
overSampMat<-sample_data(d,1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.