sample_data_fpc: Sample the prepped data of the boys of the Berkeley Growth...

Description Usage Arguments Examples

Description

This returns an oversampling of "boys", the returned object from "prep_data()".

Usage

1
2
sample_data_fpc(data_in = NULL, tot_subj = 1000, seed = 101,
  timepoints = age_vec, knots.face = NULL)

Arguments

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.

Examples

1
2
3
d<-prep_data()
head(d)
overSampMat<-sample_data(d,1000)

swihart/wfpca documentation built on May 30, 2019, 10:38 p.m.