Skip to content

Commit

Permalink
Update deviation.R
Browse files Browse the repository at this point in the history
  • Loading branch information
cwendorf committed Oct 7, 2023
1 parent 1506b94 commit 58bada6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/deviation.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ deviation.last <- function (n, intercept=FALSE, contrasts=TRUE, sparse=FALSE) {
cont <- cont[, -length(levels), drop = FALSE]
cont[length(levels), ] <- -1
colnames(cont) <- NULL
dimnames(cont) <- list(1:n, paste0("MD", .zf(1:(n-1))))
#dimnames(cont) <- list(1:n, paste0("MD", .zf(1:(n-1))))
}
if(intercept) (cont <- cbind(Int=1,cont))
cont
Expand Down

0 comments on commit 58bada6

Please sign in to comment.