View source: R/CalcScore_function.R

Matrix of score for the propensity score.

1 2 |

`dta` |
The data set including (at least) the treatment and covaratiates. |

`neigh_ind` |
A list including one element for each neighborhood. That element includes the indices of the observations in dta that belong to each neighborhood. Can be left NULL if dta includes a column neigh. |

`phi_hat` |
A list with two elements. The first one is a vector of coefficients of the propensity score, and the second one is the random effect variance. |

`cov_cols` |
The indeces including the covariates of the propensity score model. |

`trt_name` |
The name of the treatment column. If it is 'A', you can leave NULL. |

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.