This module provides comprehensive power analysis for survival studies, allowing researchers to calculate statistical power, required sample size, or minimum detectable hazard ratio for survival analysis designs.
Details
The powersurvival function implements power calculations based on the Freedman method for survival studies with Cox proportional hazards models. It supports both simple designs (fixed follow-up) and complex designs with accrual periods, variable follow-up times, and loss to follow-up.
Key features:
Three calculation types: power, sample size, or hazard ratio
Simple and complex study designs
Interactive plots showing parameter relationships
Comprehensive educational output with interpretation
Input validation and warning system
For complex designs, the function accounts for:
Accrual period and variable follow-up times
Loss to follow-up as competing risk
Baseline hazard estimation from median survival
Average follow-up time calculations
References
Freedman, L.S. (1982). Tables of the number of patients required in clinical trials using the log-rank test. Statistics in Medicine, 1, 121-129.
Rosner, B. (2006). Fundamentals of Biostatistics (6th edition). Thomson Brooks/Cole.
Author
Serdar Balci drserdarbalci@gmail.com
Super classes
jmvcore::Analysis
-> ClinicoPath::powersurvivalBase
-> powersurvivalClass
Methods
Inherited methods
jmvcore::Analysis$.createImage()
jmvcore::Analysis$.createImages()
jmvcore::Analysis$.createPlotObject()
jmvcore::Analysis$.load()
jmvcore::Analysis$.render()
jmvcore::Analysis$.save()
jmvcore::Analysis$.savePart()
jmvcore::Analysis$.setCheckpoint()
jmvcore::Analysis$.setParent()
jmvcore::Analysis$.setReadDatasetHeaderSource()
jmvcore::Analysis$.setReadDatasetSource()
jmvcore::Analysis$.setResourcesPathSource()
jmvcore::Analysis$.setStatePathSource()
jmvcore::Analysis$addAddon()
jmvcore::Analysis$asProtoBuf()
jmvcore::Analysis$asSource()
jmvcore::Analysis$check()
jmvcore::Analysis$init()
jmvcore::Analysis$optionsChangedHandler()
jmvcore::Analysis$postInit()
jmvcore::Analysis$print()
jmvcore::Analysis$readDataset()
jmvcore::Analysis$run()
jmvcore::Analysis$serialize()
jmvcore::Analysis$setError()
jmvcore::Analysis$setStatus()
jmvcore::Analysis$translate()
ClinicoPath::powersurvivalBase$initialize()