non_parm: Non-parametric method

Description Usage Arguments Value

View source: R/methods.R

Description

Calculates weights under I = 1, using the non-parametric method

Usage

1
2
non_parm(Y, X, control = NULL, wgt = rep(1, length(Y)), lambda = 100,
  ...)

Arguments

Y

outcome vector (must be numeric without NA's).

X

numeric data frame or matrix of factors to be considered.

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).

wgt

an optional vector of weights.

lambda

the lagrange multiplier. also known as the shadow price of an intervention.

...

additional arguments.

Value

vector of weights under I = 1


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