Repository navigation
Releases
Releases · DaikiKumakura/bayespk
bayespk 0.2.0
- Bug fix: with
error = "log", the likelihood compared the untransformed DV with log(concentration), so log-scale fits in 0.1.0 and 0.1.1 were wrong. DV is now log-transformed. A recovery test and a simulation-based calibration scenario with log-scale error were added. - Data below the quantification limit: rows with
CENS = 1(DV holds the limit) are handled by Beal's M3 method. - Steady state: dose records with
SS = 1andIIuse closed-form steady-state solutions for bolus, infusion and first-order oral doses; earlier doses are reset, and observations within one interval before the steady-state dose (troughs) are used.dose_regimen(ss = TRUE)predicts at steady state. - The mean/deviation split of the random effects is no longer applied to KA, which was slower without benefit in benchmarks (
inst/validation/benchmark_decouple.R).
Validation summary and known limitations: inst/validation/README.md
bayespk 0.1.1
plot()methods: individual fits on a fine time grid, observed vs predicted, trace plots, and predicted concentrations for new regimens withcompare =for two regimens. All use Okabe-Ito colours.predict()withoutregimenacceptstimesto return each subject's prediction on a time grid. Predictions are returned as classbpk_prediction(a data frame).prior_sensitivity()reports parameters by their names (CL,b_wt,omega_V, ...).- New simulated data set
bpk_example, used by every example. - Three vignettes with precomputed results and figures: getting started, covariates and informative priors, two-compartment models and regimen comparison.
citation("bayespk"), issue templates, and a README with figures and results.
Guides: https://daikikumakura.github.io/bayespk/articles/bayespk.html
bayespk 0.1.0
- First release: 1- and 2-compartment linear models (IV bolus, infusion, first-order oral), closed-form solutions, log-normal between-subject variability (optionally correlated), covariate formulas, four residual error models, weakly informative default priors, diagnostics with warnings, predictions for new regimens, prior sensitivity.
pk_model(ka_faster = TRUE)constrains the typical KA above the disposition rate to remove flip-flop modes (off by default).- Random effects are sampled as a sample mean plus Helmert deviations, which removes the correlation between typical values and the mean random effect.
Validation summary and known limitations: inst/validation/README.md