ps.auc: AUC

Description Usage Arguments Details Value Examples

View source: R/psAUC.R

Description

Calculates the area under the curve for a set of calculated propensity scores.

Usage

1

Arguments

data

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'.

Details

This function uses the 'AUC' R package to generate a AUC value of the propensity scores. For this to work properly, the argument ... should be a data frame containing the dataset with previously calculated propensity scores in a variable called ps_values.

Value

The area under the curve

Examples

1
2
3
4
## Not run: 
ps.auc(myData)

## End(Not run)

OHDSI/Centaur documentation built on May 9, 2017, 3:24 p.m.