Description Usage Arguments Examples
View source: R/01-model-setup.R
This function checks the format of what you're inputting into cc_control() for linear constraints. This is to help you format your model correctly and prevent downstream errors, which can be harder to debug.
1 | validate_linear_constraints(constraints, verbose = TRUE)
|
constraints |
What you're planning on inputting to cc_control(linear_constraints = ...) |
verbose |
Logical. Should debugging information be printed? |
1 2 | validate_linear_constraints(create_linear_constraints(u = c(1,2,3),whichzero = 1)) # Valid
validate_linear_constraints(list(x = c(1,2,3))) # Not valid
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.