check.categories_params: Check Correctness of Parameters Categories

View source: R/check.R

check.categories_paramsR Documentation

Check Correctness of Parameters Categories

Description

The function controls that the provided parameters categories have a length equal to the number of categories required by the model parameters. For the current model, the number of categories is 5 because there are five blocks of unkown parameters (\phi_k \forall k, \beta_r \forall r, \mu_1, \nu, \gamma_k \forall k).

Moreover, it also controls that the minimum value of a parameter category is actually less than or eqaul to the maximum value for the same category.

Usage

check.categories_params(
  n_categories,
  categories_range_min,
  categories_range_max
)

Arguments

n_categories

Number of categories expected by the model. For the current model, they are 5.

categories_range_min

Numerical vector of length 5, containing the minimum ranges for the parameters beloning to those categories.

categories_range_max

Numerical vector of length equal to 5, containing the maximum ranges for the parameters belonging to those categories.

Value

An error if the any condition is not satisfied.


TimeDepFrail documentation built on April 11, 2025, 5:41 p.m.