ipcwswitch v1.0.3

0

Monthly downloads

0th

Percentile

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

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.

Functions in ipcwswitch

Name Description
wideToLongTDC Function from wide to long format
SHIdat A real example dataset from the randomized clinical trial SHIVA
timesTokeep Function to keep all event times
toydata A short example dataset
cens.ipw Censoring patient initiating the other arm treatment and building a treatment censoring indicator cens
ipcw Computing the stabilized IPCweights
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
No Results!

Last month downloads

Details

License GPL-3
Encoding UTF-8
LazyData true
RoxygenNote 6.1.1
NeedsCompilation no
Packaged 2019-05-15 18:12:27 UTC; Nathalie
Repository CRAN
Date/Publication 2019-05-15 22:10:58 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/ipcwswitch)](http://www.rdocumentation.org/packages/ipcwswitch)