Skip to contents

Check a model's data and parameters and report anything that would stop it being fit.

Usage

model_validate(model)

Arguments

model

a corehydro_model from one of the model_*() constructors.

Value

A named list: is_valid (logical) and messages (character vector, empty when valid).

Examples

peaks <- c(12500, 15300, 8900, 22100, 18700, 14200, 9800, 28500, 17400, 11600)
model_validate(model_univariate("Normal", peaks))
#> $is_valid
#> [1] TRUE
#> 
#> $messages
#> character(0)
#>