wgt_adjust: Weights adjustment

Description Usage Arguments Value

View source: R/methods.R

Description

Adjust new weights so that the distribution of the control variables would not change

Usage

1
wgt_adjust(control, base.wgt1, wgt)

Arguments

control

numeric data frame or matrix of factors to control for. these are factors that we can't consider while looking for the optimal intervention (e.g. race).

base.wgt1

baseline weights under I = 1

wgt

an optional vector of weights.

Value

vector of adjusted weights under I = 1


optinterv documentation built on March 26, 2020, 7:05 p.m.