Calculates the specificity curve 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 calculate the specificity 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.
Calculated specificity of propensity scores
1 2 3 4
## Not run: ps.specificity(myData) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.