rweUnbalance: Get unbalance in baseline Covariates

Description Usage Arguments Value

View source: R/rwe_balance.R

Description

Get unbalance in baseline Covariates

Usage

1
2
3
4
5
6
7
8
9
rweUnbalance(
  nPat,
  ...,
  pts = NULL,
  covs = NULL,
  diff = TRUE,
  var.group = "Z",
  cov.pattern = "^V[0-9]+$"
)

Arguments

nPat

number of patients

diff

If TRUE, get the difference in covariates between groups. Otherwise, get covariates for each group separately

var.group

Column name in pts that corresponds to treat group

Value

If diff is TRUE, return a dataset with columns V and Diff. Otherwise, return a dataset with columns V, Z and Value. In both cases, column V represents the name of covariates.


olssol/rwetools documentation built on April 18, 2021, 11:42 a.m.