Package: survParamSim 0.1.6.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.6.9000.tar.gz
survParamSim_0.1.6.9000.zip(r-4.5)survParamSim_0.1.6.9000.zip(r-4.4)survParamSim_0.1.6.9000.zip(r-4.3)
survParamSim_0.1.6.9000.tgz(r-4.4-any)survParamSim_0.1.6.9000.tgz(r-4.3-any)
survParamSim_0.1.6.9000.tar.gz(r-4.5-noble)survParamSim_0.1.6.9000.tar.gz(r-4.4-noble)
survParamSim_0.1.6.9000.tgz(r-4.4-emscripten)survParamSim_0.1.6.9000.tgz(r-4.3-emscripten)
survParamSim.pdf |survParamSim.html
survParamSim/json (API)
NEWS

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

Peer review:

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

On CRAN:

20 exports 3 stars 0.93 score 42 dependencies 4 scripts 189 downloads

Last updated 1 years agofrom:5a5adc9fd1. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 18 2024
R-4.5-winOKSep 18 2024
R-4.5-linuxOKSep 18 2024
R-4.4-winOKSep 18 2024
R-4.4-macOKSep 18 2024
R-4.3-winOKSep 18 2024
R-4.3-macOKSep 18 2024

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:backportsbroomclicolorspacecpp11dplyrehafansifarverforcatsgenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellmvtnormnlmepillarpkgconfigpurrrR6RColorBrewerrlangscalesstringistringrsurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithr

survParamSim

Rendered fromsurvParamSim.Rmdusingknitr::rmarkdownon Sep 18 2024.

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