Description Usage Arguments Value See Also Examples
View source: R/model_and_convert.R
The length of a string (in characters).
1 2 | model_and_convert(response, predictor_list, svydesignObj, test.set,
plot = T)
|
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 |
A data frame of ROC curve values for each input formula
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.