FromAlphaToRE: Function that calculates the random effect that corresponds...

View source: R/FromAlphaToRE_function.R

FromAlphaToRER Documentation

Function that calculates the random effect that corresponds to a specific average probability of treatment.

Description

Function that calculates the random effect that corresponds to a specific average probability of treatment.

Usage

FromAlphaToRE(alpha, lin_pred, alpha_re_bound = 10)

Arguments

alpha

Target average probability of treatment. Numberic in 0 - 1.

lin_pred

Linear predictor for the probability of treatment among the remaining units. Includes intercept and fixed effects.

alpha_re_bound

The lower and upper end of the values for bi we will look at. Defaults to 10, meaning we will look between - 10 and 10.


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