| validate_design_matrix | R Documentation |
Internal helper to validate that a matrix meets standard requirements for booklet and linking design matrices: is a matrix, has correct column count, and contains only binary values.
validate_design_matrix(mat, n_items, matrix_name)
mat |
An object to validate (should be a matrix). |
n_items |
Integer: the expected number of columns. |
matrix_name |
Character string: the name of the matrix type for error messages (e.g., "booklet_matrix", "linking_matrix"). |
Invisibly returns NULL if all checks pass. Throws an error
(via stop()) if any check fails.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.