predROC: Produce a data frame of ROC curve values based on a svyglm...

Description Usage Arguments Value See Also Examples

Description

Produce a data frame of ROC curve values based on a svyglm object and a test set

Usage

1
predROC(glm.obj, newData, plot = TRUE)

Arguments

glm.obj

a svyglm object

newData

a data frame whose variables are compatible with the svyglm object, for use in prediction

plot

a boolean indicating whether or not to generate a plot

Value

A data frame of ROC curve values based on a svyglm object and a test set

See Also

WeightedROC:WeightedROC

Examples

1
2
3
4
5
data(list = c("GES2013.drivers.design", "GES2013.drivers"))
model <- svyglm(DROWSY ~ HEAVY_TRUCK + INT_HWY + SEX_IM + SPEEDREL,
                            family = quasibinomial(link=logit),
                            design = GES2013.drivers.design)
predROC(model,GES2013.drivers)

PatrickCoyle/analyzeGES2 documentation built on May 17, 2019, 12:49 p.m.