Learn R Programming

optinterv (version 0.1.0)

outcome_diff: Outcome difference

Description

Calculates the diffrence between E(Y|I=1) and E(Y|I=0)

Usage

outcome_diff(Y, wgt1, wgt = rep(1, length(Y)))

Arguments

Y

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

wgt1

weights under I = 1

wgt

an optional vector of weights.

Value

outcome difference