IE: Indirect effect estimates and asymptotic variance.

View source: R/IE_function.R

IER Documentation

Indirect effect estimates and asymptotic variance.

Description

Indirect effect estimates and asymptotic variance.

Usage

IE(
  ygroup,
  boots = NULL,
  ps = c("true", "estimated"),
  scores = NULL,
  alpha_level = 0.05
)

Arguments

ygroup

An matrix including the group average potential outcome estimates where rows correspond to group, and columns to values of alpha. #' @param boots The results of BootVar() function including estimates of the potential outcomes from the bootstrap samples.

ps

String. Can take values 'true', or 'estimated' for known or estimated propensity score. Defaults to 'true'.

scores

A matrix with rows corresponding to the parameters of the propensity score model and columns for groups. Includes the score of the propensity score evaluated for the variables of each group. Can be left NULL for ps = 'true'.

alpha_level

Numeric. The alpha level of the confidence intervals based on the quantiles of the bootstrap estimates.


gpapadog/Interference documentation built on Oct. 30, 2022, 9:20 p.m.