Learn R Programming

CRE (version 0.2.7)

estimate_ps: Estimate the propensity score

Description

Estimates the Propensity Score given a treatment vector and features data frame.

Usage

estimate_ps(z, X, ps_method = "SL.xgboost")

Value

A vector of propensity score estimates.

Arguments

z

A treatment vector.

X

A features data frame.

ps_method

An estimation model for the propensity score (default: SL.xgboost).