Calculates the area under the curve for a set of calculated propensity scores.
Data Frame - containing the dataset with previously calculated PS. The data frame must contain a treatment indicator variable called 'treat' and a propensity score value called 'ps_values'.
This function uses the 'AUC' R package to generate a AUC value of the
propensity scores. For this to work properly, the argument
be a data frame containing the dataset with previously calculated propensity
scores in a variable called ps_values.
The area under the curve
1 2 3 4
## Not run: ps.auc(myData) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.