computeCovariateBalance: Compute covariate balance for each comparison

View source: R/CovariateBalance.R

computeCovariateBalanceR Documentation

Compute covariate balance for each comparison

Description

Compute covariate balance for each comparison

Usage

computeCovariateBalance(indicationId = "legendt2dm", outputFolder, maxCores)

Arguments

indicationId

A string denoting the indicationId for which the covariate balance should be computed.

outputFolder

Name of local folder to place results; make sure to use forward slashes (/)

maxCores

How many parallel cores should be used? If more cores are made available this can speed up the analyses.

Details

Compute covariate balance for each comparison. We do not compute balance for all covariates for every TCO, as this would be prohibitively large. Instead, we compute balance considering the entire target and comparator cohort, so not removing subjects with prior outcomes. We do compute covariate balance for every TCO for a small subset of covariates of interest (those used in the typical table 1). Stores the results in a subfolder called 'balance'.


ohdsi-studies/LegendT2dm documentation built on July 4, 2025, 8:25 p.m.