compute_dataset_simulation.RdSimulates a dataset used to fit the model.
compute_dataset_simulation(data, fit, xdata_col, sim_num = 0)a dataframe of simulation results
data_proc <- preprocess(cqtkit_data_verapamil)
fit <- nlme::lme(
fixed = deltaQTCF ~ 1 + CONC,
random = ~ 1 | ID,
data = data_proc
)
compute_dataset_simulation(data_proc, fit, CONC)
#> # A tibble: 643 × 3
#> pred xdata sim_num
#> <dbl> <dbl> <dbl>
#> 1 0.202 0 0
#> 2 -23.1 0 0
#> 3 -6.34 0 0
#> 4 -5.26 0 0
#> 5 -11.5 0 0
#> 6 -24.1 0 0
#> 7 4.87 0 0
#> 8 6.51 0 0
#> 9 -20.6 0 0
#> 10 -15.7 0 0
#> # ℹ 633 more rows