Description Usage Arguments Value Examples
This function comes after many months of running readme_sim and talks with Bryan Lau on what we need to demonstrate for the method.
1 2 3 4 5 | insample_sim_hh2(sim_seed = 101, sample_size = 1000, sim_slope = 100,
sim_intercept = 12, sim_ses_coef = 0.01, sim_age_coef = 0.01,
censoring_coef = 1, hh_rds = "./data_local/hopkins_hybrid.RDS",
hh_rds_simplog = "./data_local/hopkins_hybrid_prob_ltfu_coeffs.RDS",
hh_rds_long = "./data_local/hopkins_hybrid_long.RDS")
|
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() |
censoring_coef |
used to multiply the prob.cens from the simplog in hh2 runs. Default value is 1. will try 0.95 and 1.05 for range. |
hh_rds |
the path in single quotes to the local copy of hopkins_hybrid.RDS |
results a data frame with rmse for each approach for that simulated dataset
1 | ---
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.