attr_check: Attrition Checks

View source: R/attr_check.R

attr_checkR Documentation

Attrition Checks

Description

attr_check reports missing data on treatment variable, assignment variable, and outcome. This is an internal function and is typically not directly invoked by the user. It can be accessed using the triple colon, as in rddapp:::attr_check().

Usage

attr_check(x1, y, t, x2 = NULL)

Arguments

x1

A numeric object containing the assignment variable.

y

A numeric object containing the outcome variable, with the same dimensionality as x1.

t

A numeric object containing the treatment variable (coded as 0 for untreated and 1 for treated), with the same dimensionality as x1 and y.

x2

A numeric object containing the secondary assignment variable.

Value

attr_check returns a list containing the amount and percentage of missing data for all variables and subgroups, by treatment.


rddapp documentation built on April 6, 2023, 1:15 a.m.