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

Description Usage Arguments Value 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 survey::svyglm object whose response is a binary numeric variable taking the values 0, 1 or NA

newData

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

Value

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

Examples

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

PatrickCoyle/analyzeGES documentation built on May 26, 2019, 4:38 p.m.