compliance_profile: Complier covariate profiles

Description Usage Arguments Value Author(s) References Examples

View source: R/profile.R

Description

Calculates averages of covariates by compliance group in a 2^K factorial setting.

Usage

1

Arguments

formula

one-sided formula to indicate the treatment assignment, treatment uptake, and covariates. The right-hand side of the formula should have three components separated by the | symbol, with the first component containing the K binary treatment variables (treatment assignment), the second component containing the K binary instruments associated with each treatment variable (treatment uptake), and the third giving the covariates to be included in the profile. The order of the variables in the first two parts of the formula must match.

data

a data.frame on which to apply the formula.

subset

subset of the data to pass to estimation.

Value

A list with two objects:

raw_table

a data.frame whose rows represent the covariates and whose columns represent the different compliance groups. Each entry is the estimated mean of the covariate for that compliance group.

std_table

a data.frame similarly structured to raw_table but with the standardized difference between the compilance group means and the overall means in place of the raw means.

Author(s)

Matthew Blackwell

References

Matthew Blackwell and Nicole Pashley (2021) "Noncompliance in Factorial Experiments." Working paper.

Examples

1
2
3
4
5
6
data(newhaven)

cov_prof <- compliance_profile(~ inperson + phone | inperson_rand
  + phone_rand | age + maj_party + turnout_96, data = newhaven)

cov_prof

mattblackwell/factiv documentation built on Dec. 13, 2021, 5:49 p.m.