R/param_deg_free.R

Defines functions deg_free

Documented in deg_free

#' Degrees of freedom (integer)
#'
#' The number of degrees of freedom used for model parameters.
#'
#' @inheritParams Laplace
#' @details
#' One context in which this parameter is used is spline basis functions.
#' @examples
#' deg_free()
#' @export
deg_free <- function(range = c(1L, 5L), trans = NULL) {
  new_quant_param(
    type = "integer",
    range = range,
    inclusive = c(TRUE, TRUE),
    trans = trans,
    label = c(deg_free = "Degrees of Freedom"),
    finalize = NULL
  )
}

Try the dials package in your browser

Any scripts or data that you put into this service are public.

dials documentation built on April 3, 2023, 5:43 p.m.