View source: R/CalcScore_function.R
CalcScore | R Documentation |
Matrix of score for the propensity score.
CalcScore( dta, neigh_ind = NULL, phi_hat, cov_cols, trt_name = NULL, integral_bound = 10 )
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.