readme_sim: Run a simulation as displayed in the readMe

Description Usage Arguments Value Examples

Description

Runs all the commands in the readMe to generate rmse for each method. Run several instances of this to do a "simulation study"

Usage

1
2
readme_sim(sim_seed = 101, sample_size = 1000, sim_slope = 100,
  sim_intercept = 12, sim_ses_coef = 0.01, sim_age_coef = 0.01)

Arguments

sim_seed

passed to set.seed()

sample_size

(defaults to 1000) and must be a multiple of 100

sim_slope

see slope in calculate_ses()

sim_intercept

see intercept in calculate_ses()

sim_ses_coef

see ses_coef in apply_censoring()

sim_age_coef

see age_coef in apply_censoring()

Value

results a data frame with rmse for each approach for that simulated dataset

Examples

1
---

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