Skip to content

Commit

Permalink
minor bug fix for forecasting bernoulli expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjclark committed Jul 18, 2024
1 parent 5b7dd57 commit c7bbff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/families.R
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,8 @@ mvgam_predict = function(Xp,
betas) + attr(Xp, 'model.offset')))
out <- mu * (1 - mu)
} else {
out <- plogis(((matrix(Xp, ncol = NCOL(Xp)) %*%
betas)) +
attr(Xp, 'model.offset'))
out <- plogis(as.vector((matrix(Xp, ncol = NCOL(Xp)) %*%
betas) + attr(Xp, 'model.offset')))
}
}

Expand Down
Binary file modified src/mvgam.dll
Binary file not shown.

0 comments on commit c7bbff1

Please sign in to comment.