resolve_params: Internal Utility Function for Parameter Selection

View source: R/helper_params.R

resolve_paramsR Documentation

Internal Utility Function for Parameter Selection

Description

Resolves and validates the bin and sp_order parameters. If bin is not provided or valid, both bin and sp_order are generated automatically. If bin is valid but sp_order is not provided or valid, only sp_order is generated. This function is intended for internal use only and should not be accessed by package users.

Usage

resolve_params(n, bin = NULL, sp_order = NULL)

Arguments

n

Integer. Length of the input vector.

bin

Number or NULL. Number of bins.

sp_order

Number or NULL. Spline order.

Value

A list containing the validated or automatically generated values bin and sp_order.


conMItion documentation built on June 17, 2026, 5:06 p.m.