Learn R Programming

optinterv (version 0.1.0)

wgt_adjust: Weights adjustment

Description

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

Usage

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