gps_prep: This function prepares the (generalized) propensity scores...

Description Usage Arguments Value

View source: R/dmlmt.R

Description

This function prepares the (generalized) propensity scores and checks the common support after variable selection.

Usage

1
gps_prep(x, t, nm_list, cs = TRUE, q = 1, print = TRUE)

Arguments

x

Matrix of covariates (N x p matrix)

t

Matrix of binary treament indicators (N x # of treatments matrix) each column contains a binary indicator for each tratment

nm_list

List with length = # of treatments containing list with the selected variable names for each treatment level

cs

If TRUE, common support will be checked

q

Quantile used for enforcing common support

print

If TRUE, descriptives for p-scores and common support shown

Value

gps_prep returns a list containing a N x # of treatments matrix with generalized propensity scores (p) and a boolean indicating common and a boolean indicating common support (cs).


MCKnaus/dmlmt documentation built on Dec. 4, 2020, 9:48 a.m.