Learn R Programming

semicmprskcoxmsm (version 0.2.0)

Use Inverse Probability Weighting to Estimate Treatment Effect for Semi Competing Risks Data

Description

Use inverse probability weighting methods to estimate treatment effect under marginal structure model (MSM) for the transition hazard of semi competing risk data, i.e. illness death model. We implement two specific such models, the usual Markov illness death structural model and the general Markov illness death structural model. We also provide the predicted three risks functions from the marginal structure models. Zhang, Y. and Xu, R. (2022) .

Copy Link

Version

Install

install.packages('semicmprskcoxmsm')

Monthly Downloads

178

Version

0.2.0

License

GPL (>= 2)

Maintainer

Yiran Zhang

Last Published

April 29th, 2022

Functions in semicmprskcoxmsm (0.2.0)

cif_est_usual

Estimating Three Cumulative Incidence Functions Using the Usual Markov Model
conditional_cif_b

Estimating Three Conditional Cumulative Incidence Functions Using the General Markov Model Conditional on Random Effect
initial_lambda_em

Compute the Initial (Cumulative) Baseline Hazard From the MSM Illness-death Model
initial_fit_em_weights

Fit the MSM Cox Model with IP Weights
individual_RR_RD

Estimating Three Individual Risk Difference and Risk Ratio Using the General Markov Model Conditional on Predicted Random Effect
plot.PS

Plotting Histogram of Propensity Score and Balancing Plot for Covariates in the Propensity Score Model
bayesian_boot_irrd

Obtaining Bayesian Bootstrap Sample for Individual Risk Difference and Risk Ratio.
OUT_em_weights

Initial Value For Fitting the General Markov Model
sim_cox_msm_semicmrsk

Simulating Semi-competing Risks with Right-censored Survival Data under Marginal Structural Illness-death Cox Model
usual_illness_death_weight

Fit MSM Illness-death Usual Markov Model For Semi-competing Risks Data
doPS

Generate the Inverse Probability Treatment Weights
em_illness_death_phmm_weight

Using EM Type Algorithm for MSM Illness-death General Markov Model
var_em_illness_death_phmm

Variance of parameters in MSM Illness-death General Markov Model
get_hazard_offset_weights

Compute the (Cumulative) Baseline Hazard from Cox Model with Offsets
get_hazard

Compute the (Cumulative) Baseline Hazard from Cox Model