diff --git a/DESCRIPTION b/DESCRIPTION index 2b3440f..bb3580c 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: diagnosticSummary Title: Diagnostic Summaries -Version: 0.0.2.00 +Version: 0.0.2.10 Authors@R: c(person(given = "Pat", family = "Johnson", @@ -31,7 +31,7 @@ Suggests: caret, broom, tibble -RoxygenNote: 7.1.2 +RoxygenNote: 7.3.1 Language: en-US URL: https://overdodactyl.github.io/diagnosticSummary/, https://github.com/overdodactyl/diagnosticSummary/ Roxygen: list(markdown = TRUE) diff --git a/R/dx_constructor.R b/R/dx_constructor.R index abf8d25..0a3dee4 100755 --- a/R/dx_constructor.R +++ b/R/dx_constructor.R @@ -14,7 +14,7 @@ #' with 1 being the event #' @param outcome_label Label for outcome (string) #' @param grouping_variables Character vector of variable names to -#' be summarized by. These variables should all be factors. +#' be summarized by. Variables are converted to factors if not already one. #' @param citype Confidence interval type. #' @param bootreps Number of bootstrap samples used to generate F1 score CI #' @param bootseed Seed value to be used when calculating bootsraped CI's @@ -46,7 +46,7 @@ dx <- function(data, if (!identical(grouping_variables, NA)) { for (f in grouping_variables) { if (!is.factor(data[[f]])) { - stop("All variables in `grouping_variables` should be a factor.") + data[[f]] <- as.factor(data[[f]]) } } } diff --git a/man/diagnosticSummary.Rd b/man/diagnosticSummary.Rd index 1a10281..f73bb75 100644 --- a/man/diagnosticSummary.Rd +++ b/man/diagnosticSummary.Rd @@ -2,8 +2,26 @@ % Please edit documentation in R/diagnosticSummary.R \docType{package} \name{diagnosticSummary} +\alias{diagnosticSummary-package} \alias{diagnosticSummary} \title{\code{diagnosticSummary} package} \description{ Diagnostic Summaries } +\seealso{ +Useful links: +\itemize{ + \item \url{https://overdodactyl.github.io/diagnosticSummary/} + \item \url{https://github.com/overdodactyl/diagnosticSummary/} +} + +} +\author{ +\strong{Maintainer}: Pat Johnson \email{Johnson.Patrick3@mayo.edu} (\href{https://orcid.org/0000-0001-8365-1375}{ORCID}) + +Authors: +\itemize{ + \item Rickey Carter \email{Carter.Rickey@mayo.edu} +} + +} diff --git a/man/dx.Rd b/man/dx.Rd index 076b838..dbb0508 100644 --- a/man/dx.Rd +++ b/man/dx.Rd @@ -42,7 +42,7 @@ to identify AI prediction} with 1 being the event} \item{grouping_variables}{Character vector of variable names to -be summarized by. These variables should all be factors.} +be summarized by. Variables are converted to factors if not already one.} \item{citype}{Confidence interval type.} diff --git a/man/dx_z_test.Rd b/man/dx_z_test.Rd index a44c78a..d9eedc3 100644 --- a/man/dx_z_test.Rd +++ b/man/dx_z_test.Rd @@ -7,8 +7,7 @@ dx_z_test( dx1, dx2, - metric = c("accuracy", "ppv", "npv", "fnr", "fpr", "fdr", "sensitivity", - "specificity"), + metric = c("accuracy", "ppv", "npv", "fnr", "fpr", "fdr", "sensitivity", "specificity"), detail = "full" ) }