Learn R Programming

SimHaz (version 0.1)

Simulated Survival and Hazard Analysis for Time-Dependent Exposure

Description

Generate power for the Cox proportional hazards model by simulating survival events data with time dependent exposure status for subjects. A dichotomous exposure variable is considered with a single transition from unexposed to exposed status during the subject's time on study.

Copy Link

Version

Install

install.packages('SimHaz')

Monthly Downloads

167

Version

0.1

License

GPL (>= 2)

Maintainer

Nusrat Rabbee

Last Published

October 19th, 2015

Functions in SimHaz (0.1)

tdSim.clst

Simulate 1 dataframe (1 simulation) of time-dependent exposure under method 1 with a clustering data frame
getpower.method1

Calculate power for the Cox proportional hazard model with time-dependent exposure using method 1
tdSim.method2

Simulate 1 dataframe (1 simulation) of time-dep exposure under method 2
plot_power

Plot power curves for survival analysis with time-dependent exposure
tdSim.method1

Simulate 1 dataframe (1 simulation) of time-dep exposure under method 1
plot_simuData

Make an incidence plot from simulated data.
SimHaz-package

Simulated Survival and Hazard Analysis for time-dependent
getpower.method2

Calculate power for the Cox proportional hazard model with time-dependent exposure using method 2
getpower.clst

Calculate power for the Cox proportional hazard model with time-dependent exposure using method 1 with clustering