Skip to content

Commit

Permalink
Fix print family bug when more than one param
Browse files Browse the repository at this point in the history
  • Loading branch information
fseaton committed Sep 25, 2024
1 parent 13e32b7 commit b4b71de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/jsdmstan-families.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ print.jsdmStanFamily <- function(x, ...){
cat(paste("Family:", x$family, "\n",
ifelse(length(x$params)>0,
paste("With parameters:",
paste0(x$params, sep = ", "),"\n"),
paste0(x$params, collapse = ", "),"\n"),
"")))
if(length(x$params_dataresp)>0){
cat(paste("Family-specific parameter",
paste0(x$params_dataresp,sep=", "),
paste0(x$params_dataresp,collapse=", "),
"is modelled in response to", length(x$preds),
"predictors. These are named:",
paste0(x$preds, sep = ", ")))
paste0(x$preds, collapse = ", "),"\n"))
}
}

0 comments on commit b4b71de

Please sign in to comment.