propScores: Calculate propensity score for matching.

Description Usage Arguments Details Value

Description

Computes the propensity score for treatment based on covariates. Should not generally be called directly.

Usage

1

Arguments

dat

A data frame containing columns for the treatment (Z), outcome (Y), potential mediator (S and S.cat), and baseline covariates (W1, W2, ...)

Details

The propensity scores are computed by fitting a logistic regression model to the binary outcome Y, with linear terms for each of the baseline covariates W1, W2, ...

Value

A vector of propensity scores of the same length as Z.


jwolfson/medMatch documentation built on May 20, 2019, 6:27 a.m.