add_all_weights: Calculate one type of PS weight given PS

Description Usage Arguments Value

View source: R/01_prepare_data.R

Description

.. content for details ..

Usage

1
2
add_all_weights(data, A_name, levels, ps_prefix1 = "ps1_",
  ps_prefix2 = "ps2_")

Arguments

data

data_frame

levels

Character vector holding three elements corresponding to levels in A

ps_prefix1

Prefix for the PS estimated in the entire cohort.

ps_prefix2

Prefix for the PS estimated in the trimmed cohort.

Value

data_frame containing IPTW, MW, and OW estimated in the entire cohort as well as the trimmed cohort.


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