Skip to content

Commit

Permalink
Extend message
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Jun 27, 2024
1 parent 41ee4d7 commit d08a33b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion R/brm_formula.R
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,12 @@ formula_check_rank <- function(data, formula) {
rank,
" (with missing outcomes removed if the outcome column is valid). ",
"Please consider a different parameterization to make the ",
"model matrix full-rank. Otherwise, fixed effects may not be ",
"model matrix full-rank. ",
"This may require you to choose different ",
"terms in the model formula, choose a different informative prior ",
"archetype, regress on fewer covariates, and/or or pool ",
"levels of one or more factors in the data. ",
"Otherwise, fixed effects may not be ",
"identifiable and MCMC sampling may not converge. ",
"Set check_rank = FALSE in brm_formula() to suppress this error."
)
Expand Down
7 changes: 6 additions & 1 deletion R/brm_formula_sigma.R
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ formula_sigma_check_rank <- function(data, formula) {
" columns but rank ",
rank,
". Please consider a different parameterization to make the ",
"model matrix full-rank. Otherwise, the sigma parameters may not be ",
"model matrix full-rank. ",
"This may require you to choose different ",
"terms in the model formula, choose a different informative prior ",
"archetype, regress on fewer covariates, and/or or pool ",
"levels of one or more factors in the data. ",
"Otherwise, the sigma parameters may not be ",
"identifiable and MCMC sampling may not converge. ",
"Set check_rank = FALSE in brm_formula_sigma() to suppress this error."
)
Expand Down

0 comments on commit d08a33b

Please sign in to comment.