Skip to content

Commit da05915

Browse files
Merge pull request #1465 from dshemetov/main
fix: remove unused line in yeo-johnson
2 parents 451b4df + 76947d2 commit da05915

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

R/YeoJohnson.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ yj_transform <- function(x, lambda, ind_neg = NULL, eps = 0.001) {
229229
ll_yj <- function(lambda, y, ind_neg, const, eps = 0.001) {
230230
n <- length(y)
231231
y_t <- yj_transform(y, lambda, ind_neg)
232-
mu_t <- mean(y_t)
233232
var_t <- var(y_t) * (n - 1) / n
234233
res <- -.5 * n * log(var_t) + (lambda - 1) * const
235234
res

0 commit comments

Comments
 (0)