CreateIpw: Create IPW

Description Usage Arguments Value Author(s)

View source: R/02.ParepareDataWithinSites.R

Description

Create inverse probability weights given probability of status assignment and observed status.

Usage

1
CreateIpw(score, status, type)

Arguments

score

vector of predicted probability of being assigned status == 1.

status

vector of observed status (binary 0, 1).

type

character value containing either one of naive (non-stabilized naive IPW), stabilized (IPW stabilized by marginal probabilities of status), or mw (matching weights; stabilized by pmin(score, 1 - score)).

Value

vector of IPW.

Author(s)

Kazuki Yoshida


kaz-yos/distributed documentation built on May 27, 2019, 4:50 a.m.