View source: R/Ypop_function.R
Ypop | R Documentation |
Estimates and asymptotic variance of the population average potential outcome for known or estimated propensity score model.
Ypop( ygroup, ps = c("true", "estimated"), scores = NULL, dta = NULL, use = "everything" )
ygroup |
An array including the group average potential outcome estimates where the dimensions correspond to group, individual treatment and value of alpha. |
ps |
String. Can take values 'true', or 'estimated' for known or estimated propensity score. Defaults to 'true'. |
scores |
A matrix with rows corresponding to the parameters of the propensity score model and columns for groups. Includes the score of the propensity score evaluated for the variables of each group. Can be left NULL when ps is set to 'true'. |
dta |
The data set including the variable neigh. Defaults to NULL. Can be left NULL when the true propensity score is used. |
use |
Whether the data with missing values will be used for the estimation of the variance. Argument for cov() function. Defaults to 'everything'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.