View source: R/CalcNumerator_function.R

Calculate the numerator in the estimator Yhat.

1 | ```
CalcNumerator(Ai_j, Xi_j, gamma_numer, alpha, re_alpha)
``` |

`Ai_j` |
A vector of length n_i - 1 including the treatment assignment of all but the unit we are currently considering. |

`Xi_j` |
The matrix of covariates for all units in the cluster but the one. This can be the observed values or a counterfactual set of covariates. |

`gamma_numer` |
A vector of the numerator coefficients starting with the intercept. |

`alpha` |
The average probability of treatment among the n_i - 1 units. |

`re_alpha` |
The fixed effect bi that gives average propensity of treatment in the group equal to alpha. |

gpapadog/Interference documentation built on Oct. 17, 2018, 3:27 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.