Skip to content

Commit

Permalink
Merge pull request #5 from danielmork/release
Browse files Browse the repository at this point in the history
Hotfix for single cover model
  • Loading branch information
danielmork authored Mar 10, 2022
2 parents 2276e68 + 38382e2 commit a371a25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/dlmtree.R
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ dlmtree <- function(formula,
if (model$intercept) {
model$gamma[,1] <- model$gamma[,1] + model$Ymean
if (ncol(model$Z) > 1)
model$gamma[,1] <- model$gamma[,1] - model$gamma[,-1] %*% model$Zmean[-1]
model$gamma[,1] <- model$gamma[,1] - model$gamma[,-1,drop=FALSE] %*% model$Zmean[-1]
}
colnames(model$gamma) <- model$Znames

Expand Down
2 changes: 1 addition & 1 deletion R/tdlmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ tdlmm <- function(formula,
if (model$intercept) {
model$gamma[,1] <- model$gamma[,1] + model$Ymean
if (ncol(model$Z) > 1)
model$gamma[,1] <- model$gamma[,1] - model$gamma[,-1] %*% model$Zmean[-1]
model$gamma[,1] <- model$gamma[,1] - model$gamma[,-1,drop=FALSE] %*% model$Zmean[-1]
}
colnames(model$gamma) <- model$Znames

Expand Down
2 changes: 1 addition & 1 deletion R/tdlnm.R
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ tdlnm <- function(formula,
if (model$intercept) {
model$gamma[,1] <- model$gamma[,1] + model$Ymean
if (ncol(model$Z) > 1)
model$gamma[,1] <- model$gamma[,1] - model$gamma[,-1] %*% model$Zmean[-1]
model$gamma[,1] <- model$gamma[,1] - model$gamma[,-1,drop=FALSE] %*% model$Zmean[-1]
}
colnames(model$gamma) <- model$Znames

Expand Down

0 comments on commit a371a25

Please sign in to comment.