paper_treatment_functions: paper_treatment_functions

Description Usage Arguments Value

View source: R/paper_treatment_functions.R

Description

Generates the four different treatment functions used for simulations in the paper.

Usage

1
paper_treatment_functions(target_mean = 0.425)

Arguments

target_mean

Desired mean for each of the treatment probabilities, should be in (0, 1).

Value

List of four functions that take in a matrix and output a vector of probabilities:

constant_treat_prob

Just repeats target_mean

logistic_treat_prob

Computes a logistic style relationship between the data matrix and the output vector

sparse_treat_prob

Based on the sign of the first data matrix column; gives a number a bit above the mean and a bit below.

sparse_nonlin_treat_prob

Cubic logit function of the first vector


rzgross/uRbanmatching documentation built on Dec. 22, 2021, 8:20 p.m.