Closed SybrandZielhuis closed 5 months ago
hi Sybrand,
thanks for posting the issue. This behavior was due to a bug in the code for pred-correction. I've just made a fix that should address this, and merged it into the master branch. Please re-install package from Github (remotes::install_github("ronkeizer/vpc")
) and try again.
best,
Ron
Hi,
I'm trying to generate a prediction corrected vpc but I keep getting the same error:
This is the code I used:
vpc(sim = sim2, obs = obs, sim_cols = list(dv = "DV", sim = "REP"), obs_cols = list(dv = "DV"), show = list(obs_dv = TRUE, obs_ci = TRUE, pi_as_area = FALSE, sim_median_ci = TRUE, pi = FALSE), log_y = FALSE, xlab = "Time (hours)", # Label of the x-axis ylab = "Concentration (ng/ml)", # Label of the y-axis title = "VPC of a single administration of 20 mg of lenvatinib ", scales = "free", pi = c(0.05, 0.95), # prediction interval simulated data to show ci = c(0.05, 0.95), n_bins = "auto", pred_corr = TRUE, pred_corr_lower_bnd = 0, smooth = FALSE, verbose = FALSE )
Sim2 and obs are the following:
Does anyone know what I am doing wrong?
Kind regards, Sybrand