View source: R/Denominator_function.R

Calculating the denominator of the group estimator.

1 2 | ```
Denominator(A, X, phi_hat, alpha = NULL, integral_bound = 10,
include_alpha = TRUE)
``` |

`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. |

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.