Package: survParamSim 0.1.7.9000

survParamSim: Parametric Survival Simulation with Parameter Uncertainty

Perform survival simulation with parametric survival model generated from 'survreg' function in 'survival' package. In each simulation coefficients are resampled from variance-covariance matrix of parameter estimates to capture uncertainty in model parameters. Prediction intervals of Kaplan-Meier estimates and hazard ratio of treatment effect can be further calculated using simulated survival data.

Authors:Kenta Yoshida [aut, cre], Laurent Claret [aut]

survParamSim_0.1.7.9000.tar.gz
survParamSim_0.1.7.9000.zip(r-4.7)survParamSim_0.1.7.9000.zip(r-4.6)survParamSim_0.1.7.9000.zip(r-4.5)
survParamSim_0.1.7.9000.tgz(r-4.6-any)survParamSim_0.1.7.9000.tgz(r-4.5-any)
survParamSim_0.1.7.9000.tar.gz(r-4.7-any)survParamSim_0.1.7.9000.tar.gz(r-4.6-any)
survParamSim_0.1.7.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
survParamSim/json (API)
NEWS

# Install 'survParamSim' in R:
install.packages('survParamSim', repos = c('https://yoshidk6.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/yoshidk6/survparamsim/issues

Pkgdown/docs site:https://yoshidk6.github.io

On CRAN:

Conda:

4.18 score 3 stars 5 scripts 567 downloads 20 exports 37 dependencies

Last updated from:9ce603e8ba. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK195
source / vignettesOK303
linux-release-x86_64OK178
macos-release-arm64OK192
macos-oldrel-arm64OK328
windows-develOK146
windows-releaseOK132
windows-oldrelOK139
wasm-releaseOK133

Exports:%>%calc_ave_hr_picalc_ave_km_picalc_hr_picalc_km_piextract_hrextract_hr_piextract_km_obsextract_km_piextract_median_survextract_medsurvextract_medsurv_deltaextract_medsurv_delta_piextract_medsurv_piextract_simplot_hr_piplot_km_pisurv_param_simsurv_param_sim_pre_resampledsurv_param_sim_resample

Dependencies:backportsbroomclicpp11dplyrehafarverforcatsgenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMatrixmvtnormpillarpkgconfigpurrrR6RColorBrewerrlangS7scalesstringistringrsurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithr

survParamSim

Rendered fromsurvParamSim.Rmdusingknitr::rmarkdownon May 16 2026.

Last update: 2023-05-23
Started: 2019-12-18

Readme and manuals

Help Manual

Help pageTopics
Generate hazard ratio with prediction intervals from parametric bootstrap simulationcalculate_hr_pi calc_ave_hr_pi calc_hr_pi
Generate Kaplan-Meier curves with prediction intervals using simulated survival timecalculate_km_pi calc_ave_km_pi calc_km_pi
Functions to extract prediction intervals and observed dataextract_median_surv
Functions to extract prediction intervals and observed dataextractpi extract_hr_pi extract_km_pi extract_medsurv_delta_pi extract_medsurv_pi
Functions to extract raw simulated samplesextractrawsim extract_hr extract_km_obs extract_medsurv extract_medsurv_delta extract_sim
Plot simulated HR histogram(s) overlayed with prediction intervalsplot_hr_pi
Plot Kaplan-Meier curves with prediction intervals from parametric bootstrap simulationplot_km_pi
Methods for S3 objects in the packageprint.survparamsim print.survparamsim.hrpi print.survparamsim.kmpi summary.survparamsim.hrpi summary.survparamsim.kmpi survparamsim-methods
Simulation of parametric survival model with an already-resampled datasetsurv_param_sim_pre_resampled
Simulation of parametric survival modelsurvparamsim surv_param_sim surv_param_sim_resample