Nothing
#' Threshold structure (character)
#'
#' The threshold structure for the cutpoints of an ordinal regression model.
#'
#' @param values A character string of possible values. See
#' `values_threshold_structure` in examples below.
#' @details This parameter is used by ordinal regression models specified by
#' `parsnip::ordinal_reg()`, for example with the `"clm"` or `"vglm"` engines.
#' It controls how thresholds/cutpoints are constrained.
#'
#' * `"flexible"` (default): No constraints.
#'
#' * `"symmetric_median"`: Symmetry about the median threshold.
#'
#' * `"symmetric_zero"`: Symmetry about zero.
#'
#' * `"equidistant"`: Equal differences between consecutive thresholds.
#'
#' See engine documentation for more detail and supported structures.
#' @examples
#' values_threshold_structure
#' threshold_structure()
#' @export
threshold_structure <- function(values = values_threshold_structure) {
new_qual_param(
type = "character",
values = values,
label = c(threshold_structure = "Threshold Structure"),
finalize = NULL
)
}
#' @rdname threshold_structure
#' @export
values_threshold_structure <- c(
"flexible",
"symmetric_median",
"symmetric_zero",
"equidistant"
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.