Learn R Programming

ipcwswitch (version 1.0.4)

Inverse Probability of Censoring Weights to Deal with Treatment Switch in Randomized Clinical Trials

Description

Contains functions for formatting clinical trials data and implementing inverse probability of censoring weights to handle treatment switches when estimating causal treatment effect in randomized clinical trials.

Copy Link

Version

Install

install.packages('ipcwswitch')

Monthly Downloads

221

Version

1.0.4

License

GPL-3

Maintainer

Nathalie Graffeo

Last Published

February 17th, 2021

Functions in ipcwswitch (1.0.4)

wideToLongTDC

Function from wide to long format
replicRows

Function to replicate the rows so that each patients' follow-up is split according to all event times (times parameter) up to each patient's end time
toydata

A short example dataset
cens.ipw

Censoring patient initiating the other arm treatment and building a treatment censoring indicator cens
timesTokeep

Function to keep all event times
ipcw

Computing the stabilized IPCweights
SHIdat

A real example dataset from the randomized clinical trial SHIVA