model_and_convert: The length of a string (in characters).

Description Usage Arguments Value See Also Examples

View source: R/model_and_convert.R

Description

The length of a string (in characters).

Usage

1
2
model_and_convert(response, predictor_list, svydesignObj, test.set,
  plot = T)

Arguments

response

a character string identifying the response variable

predictor_list

a list whose elements are vectors of character strings specifying the desired predictor variables. A svyglm model is created for each element of the list.

svydesignObj

a svydesign object from which to create a svyglm object

test.set

a data frame whose variables match the svydesignObj, which is used to build ROC curves based on prediction

plot

a Boolean indicating whether to plot the ROC curves for each model

Value

A data frame of ROC curve values for each input formula

See Also

predROC

Examples

1
2
3
4
5
data(list = c("GES2013.drivers.design", "GES2013.drivers"))
response <- "DROWSY"
predictor_list <- list(c ("HEAVY_TRUCK",  "INT_HWY",  "SEX_IM", "SPEEDREL"),
                                 c ("HEAVY_TRUCK",  "INT_HWY",  "SEX_IM"))
model_and_convert(response, predictor_list, GES2013.drivers.design, GES2013.drivers)

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