calculate_weight: 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
calculate_weight(A, ps0, ps1, ps2, levels, weight_type)

Arguments

A

Treatment indicator vector having three levels indicated in levels.

ps0

PS vector for the first level.

ps1

PS vector for the second level.

ps2

PS vector for the third level.

levels

Character vector holding three elements corresponding to levels in A

weight_type

Either one of iptw, mw, and ow.

Value

A numeric vector of individual PS weights.


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