Skip to content

Commit

Permalink
quick hotfix gaussian deviance
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroCatalina committed Mar 8, 2021
1 parent c70dacb commit 0cabd73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/extend_family.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ extend_family_gaussian <- function(family) {
if (NCOL(y) < NCOL(mu)) {
y <- matrix(y, nrow = length(y), ncol = NCOL(mu))
}
-2 * weights * (-0.5 / dis * (y - mu)^2 - log(dis))
-2 * weights * (-0.5 / dis^2 * (y - mu)^2 - log(dis))
}
ppd_gauss <- function(mu, dis, weights = 1) rnorm(length(mu), mu, dis)

Expand Down

0 comments on commit 0cabd73

Please sign in to comment.