Learn R Programming

RobinCar2 (version 0.1.1)

ROBust INference for Covariate Adjustment in Randomized Clinical Trials

Description

Performs robust estimation and inference when using covariate adjustment and/or covariate-adaptive randomization in randomized controlled trials. This package is trimmed to reduce the dependencies and validated to be used across industry. See "FDA's final guidance on covariate adjustment", Tsiatis (2008) , Bugni et al. (2018) , Ye, Shao, Yi, and Zhao (2023), Ye, Shao, and Yi (2022), Rosenblum and van der Laan (2010), Wang et al. (2021), Ye, Bannick, Yi, and Shao (2023), and Bannick, Shao, Liu, Du, Yi, and Ye (2024).

Copy Link

Version

Install

install.packages('RobinCar2')

Monthly Downloads

568

Version

0.1.1

License

Apache License 2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Liming Li

Last Published

April 3rd, 2025

Functions in RobinCar2 (0.1.1)

update_levels

Update levels in a contrast pair
randomization_schema

Randomization schema
vcovG

ANHECOVA Covariance
robin_glm

Covariate adjusted glm model
dummy_data

Dummy Trial Data with Permute-Block Randomization
find_data

Find Data in a Fit
RobinCar2-package

RobinCar2 Package
predict_counterfactual

Counterfactual Prediction
vcovHC

Heteroskedasticity-consistent covariance matrix for predictions
h_diff

Contrast Functions and Jacobians
robin_lm

Covariate adjusted lm model
treatment_effect

Treatment Effect
jac_mat

Obtain the Jacobian matrix
h_get_vars

Extract Variable Names
h_adjust_pi

Obtain Adjustment for Proportion of Treatment Assignment
block_sum

Block Sum of a matrix
bias

Prediction Bias
prediction_cf_methods

S3 Methods for prediction_cf
h_get_erb

Obtain Adjustment for Covariance Matrix