RobinCar20.2.2 package

ROBust INference for Covariate Adjustment in Randomized Clinical Trials

bias

Prediction Bias

block_sum

Block Sum of a matrix

confint

Confidence Interval

contrast

Contrast Functions and Jacobians

derived_outcome_vals

Derive Outcome Values Based on Log Hazard Ratio

find_data

Find Data in a Fit

get_lm_input

Get Linear Model Input Data

get_lm_results

Calculate Coefficient Estimates and Corresponding Residuals from Linea...

h_adjust_pi

Obtain Adjustment for Proportion of Treatment Assignment

h_confint

Confidence interval calculations which are common across effect result...

h_events_table

Prepare Events Table

h_first_fct_nested_in_second

Check Whether First Factor is Nested in Second Factor

h_get_erb

Obtain Adjustment for Covariance Matrix

h_get_vars

Extract Variable Names

h_interaction

Evaluate if Interaction Exists

h_log_hr_coef_mat

Log Hazard Ratio Coefficient Matrix

h_log_hr_est_via_score

Estimate Log Hazard Ratio via Score Function

h_lr_test_via_score

Log-Rank Test via Score Function

h_n_events_per_time

Count Number of Events per Unique Event Time

h_prep_survival_input

Prepare Survival Input

h_test_mat

Log-Rank Test Results Matrix

h_unbiased_means_across_strata

Check Unbiased Means of Residuals Across Randomization Strata and Trea...

jac_mat

Obtain the Jacobian matrix

predict_counterfactual

Counterfactual Prediction

prediction_cf_methods

S3 Methods for prediction_cf

randomization_schema

Randomization schema

robin_glm

Covariate adjusted glm model

robin_lm

Covariate adjusted lm model

robin_surv_comparison

Log Hazard Ratio Estimation and Log-Rank Test via Score Function

robin_surv

Covariate Adjusted and Stratified Survival Analysis

RobinCar2-package

RobinCar2 Package

sum_vectors_in_list

Sum vectors in a list

surv_effect_methods

S3 Methods for surv_effect

survival_comparison_functions

Survival Comparison Functions

survival_score_functions

Log-Rank Score Functions for Survival Analysis

treatment_effect

Treatment Effect

update_levels

Update levels in a contrast pair

vcovG

Generalized Covariance (ANHECOVA)

vcovHC

Heteroskedasticity-consistent covariance matrix for predictions

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"<https://www.regulations.gov/docket/FDA-2019-D-0934>, Tsiatis (2008) <doi:10.1002/sim.3113>, Bugni et al. (2018) <doi:10.1080/01621459.2017.1375934>, Ye, Shao, Yi, and Zhao (2023)<doi:10.1080/01621459.2022.2049278>, Ye, Shao, and Yi (2022)<doi:10.1093/biomet/asab015>, Rosenblum and van der Laan (2010)<doi:10.2202/1557-4679.1138>, Wang et al. (2021)<doi:10.1080/01621459.2021.1981338>, Ye, Bannick, Yi, and Shao (2023)<doi:10.1080/24754269.2023.2205802>, and Bannick, Shao, Liu, Du, Yi, and Ye (2024)<doi:10.48550/arXiv.2306.10213>.

  • Maintainer: Liming Li
  • License: Apache License 2.0
  • Last published: 2026-01-09