prop_scores: Fit the Propensity Score Model

View source: R/prop_scores.R

prop_scoresR Documentation

Fit the Propensity Score Model

Description

Fit the propensity score model.

Usage

prop_scores(data, formula)

prop.r(data, formula)

Arguments

data

Data.frame.

formula

Formula used to fit the propensity score.

Details

Fit the propensity score model to obtain the score for a given data set.

Value

List with

scores

Vector of propensity scores.

fit

The object of class glm returned by glm().

Source

Section 6.2.2, p. 120-121. Used throughout chapter 10.

Examples

# An example can be found in the location identified in the
# source section above at the github site
# https://github.com/FrankLef/FundamentalsCausalInference.

FrankLef/fciR documentation built on Nov. 12, 2023, 6:09 a.m.