| validate_model | R Documentation |
Model construction, database operations, and native Biogeme model creation are checked without running an optimizer or writing estimation results. The returned diagnostics are ordinary R values; the native model object is created and discarded inside the bridge.
validate_model(model, control = NULL)
model |
A |
control |
Optional |
This is specification validation, not cross-validation. Use validate()
after estimation when the goal is out-of-sample fold evaluation.
An object of class biogeme_model_validation containing the native
validation status, database information, formula names, and parameter
count.
## Not run:
database <- biogeme_database(
"demo",
data.frame(choice = c(1, 2), x = c(1, 2))
)
model <- logit_model(
database,
choice = "choice",
utilities = list(`1` = 0, `2` = biogeme_beta("b") * variable("x"))
)
validate_model(model)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.