Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rsetienne committed Jul 16, 2024
1 parent 9077b3e commit 2918b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/DAISIE_loglik_high_lambda.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ DAISIE_loglik_high_lambda <- function(pars1, brts, stac) {
brts <- brts[-lbrts]
lbrts <- length(brts)
}
gam <- pars1[4]
if (stac == 0) {
out <- -gam * brts[1]
return(out)
}
if (stac == 2 | stac == 6) {
N <- lbrts - 1 - (stac == 6)
mu <- pars1[2]
gam <- pars1[4]
brtsdiff <- brts - c(brts[2:lbrts], 0)
out <- -gam * brtsdiff[1] +
log(gam) * (stac == 2) +
Expand Down

0 comments on commit 2918b5a

Please sign in to comment.