Skip to content

Commit 75b2b39

Browse files
committed
fix operator
1 parent 3e57458 commit 75b2b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/summary_functions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ bias <- function(estimate, parameter = NULL, type = 'bias', abs = FALSE,
135135
stopifnot(ncol(estimate) == length(parameter))
136136
diff <- t(t(estimate) - parameter)
137137
ret <- if(type == 'relative') rowMeans(t(diff) / parameter)
138-
else if(type == 'abs_relative') rowMeans(t(diff) / abs(parameter))
138+
else if(type == 'abs_relative') rowMeans(abs(t(diff) / parameter))
139139
else if(type == 'standardized') colMeans(diff) / colSDs(estimate)
140140
else colMeans(diff)
141141
if(abs) ret <- abs(ret)

0 commit comments

Comments
 (0)