Denominator: Calculating the denominator of the group estimator.

View source: R/Denominator_function.R

DenominatorR Documentation

Calculating the denominator of the group estimator.

Description

Calculating the denominator of the group estimator.

Usage

Denominator(
  A,
  X,
  phi_hat,
  alpha = NULL,
  integral_bound = 10,
  include_alpha = TRUE
)

Arguments

A

The treatment vector for units in the group.

X

The covariates for units in the group.

phi_hat

A list with two elements. The first one is a vector of coefficients of the ps, and the second one is the random effect variance. If the second element is 0, the propensity score excludes random effects.

alpha

This value of alpha is used to stabilize calculations. If include_alpha is set to TRUE, alpha needs to coincide with the alpha used for calculating the numerator.

integral_bound

If the propensity score includes a random effect, the integral in the denominator is calculated over the normal distribution of the random effects from - integral_bound to integral_bound.

include_alpha

If include_alpha is set to true, the probabilities in the denominator are divided by the specified value of alpha to stabilize the integral calculation.


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