SPSbalan {LocalControl}R Documentation

Test for Within-Bin X-covariate Balance in Supervised Propensiy Scoring

Description

Test for Conditional Independence of X-covariate Distributions from Treatment Selection within Given, Adjacent PS Bins. The second step in Supervised Propensity Scoring analyses is to verify that baseline X-covariates have the same distribution, regardless of treatment, within each fitted PS bin.

Usage

SPSbalan(envir, dframe, trtm, yvar, qbin, xvar, faclev = 3)

Arguments

envir

The local control environment

dframe

Name of augmented data.frame written to the appn="" argument of SPSlogit().

trtm

Name of the two-level treatment factor variable.

yvar

The outcome variable.

qbin

Name of variable containing bin numbers.

xvar

Name of one baseline covariate X variable used in the SPSlogit() PS model.

faclev

Maximum number of different numerical values an X-covariate can assume without automatically being converted into a "factor" variable; faclev=1 causes a binary indicator to be treated as a continuous variable determining a proportion.

Value

An output list object of class SPSbalan. The first four are returned with a continuous x-variable. The next 4 are used if it is a factor variable.

aovdiff

ANOVA output for marginal test.

form2

Formula for differences in X due to bins and to treatment nested within bins.

bindiff

ANOVA output for the nested within bin model.

df3

Output data.frame containing 3 variables: X-covariate, treatment and bin.

factab

Marginal table of counts by X-factor level and treatment.

tab

Three-way table of counts by X-factor level, treatment and bin.

cumchi

Cumulative Chi-Square statistic for interaction in the three-way, nested table.

cumdf

Degrees of-Freedom for the Cumulative Chi-Squared.

Author(s)

Bob Obenchain <wizbob@att.net>

References


[Package LocalControl version 1.1.4 Index]