add_gps: Add generalized PS

Description Usage Arguments Value

View source: R/01_prepare_data.R

Description

.. content for details ..

Usage

1
add_gps(data, formula, family, subset, ps_prefix)

Arguments

data

data_frame

formula

formula for PS model

family

multinomial(parallel = FALSE) should be used.

subset

subset expression if estimating PS only for the subset

ps_prefix

string used as the prefix. Use to distinguish the re-estimated PS from the original PS.

Value

data_frame containing three additional columns for PS.


kaz-yos/trim3 documentation built on May 3, 2019, 7:40 p.m.