sample_data: 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(data_in = NULL, tot_subj = 1000, seed = 101,
  timepoints = as.numeric(names(data_in[, -1])))

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

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.