plot.bal: The balance value for a given matrix of counts using the...

View source: R/Selbal_Functions.R

plot.balR Documentation

The balance value for a given matrix of counts using the variables appearing in a data.frame like the output of selbal.aux

Description

The balance value for a given matrix of counts using the variables appearing in a data.frame like the output of selbal.aux

Usage

## S3 method for class 'bal'
plot(POS, NEG, x, y, covar = NULL, col, logit.acc = NULL)

Arguments

POS

a vector containing the variables taking part in the numerator of the balance.

NEG

a vector containing the variables taking part in the denominator of the balance.

x

a matrix object with the log-transforemd counts

y

the response variable, either continuous or dichotomous.

covar

a data.frame with the covariates to adjust for.

col

a vector with two values for representing the individuals for each of the two considered groups.

logit.acc

when y is dichotomous, the measure to compute for the correlation between y and the proposed balance adjusting for covariates. One of the following values: "AUC" (default), "Dev", "Rsq" or "Tjur".

Value

A graphical representation of the balance for the selected individuals and the variables taking part on it.


malucalle/selbal documentation built on May 31, 2024, 2:36 p.m.