Description Usage Arguments Examples
This returns an oversampling of "boys", the returned object from "prep_data()".
1 2 | sample_data_fpc(data_in = NULL, tot_subj = 1000, seed = 101,
timepoints = age_vec, knots.face = NULL)
|
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 |
timepoints |
the grid that the columns of data_in represent |
knots.face |
number of knots passed to fpca.face() – defaults to NULL in which case fpca.face is told to have (length(timepoints)-5) knots. |
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.