Skip to content

Commit

Permalink
Remove redundant variable in sse.sample()
Browse files Browse the repository at this point in the history
  • Loading branch information
ml4418 committed Nov 24, 2022
1 parent 4dc191d commit 44788f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/fxTWAPLS.R
Original file line number Diff line number Diff line change
Expand Up @@ -1505,8 +1505,8 @@ sse.sample <- function(modern_taxa,
}

avg.xboot <- rowMeans(xboot, na.rm = TRUE)
v1 <- boot.mean.square <- rowMeans((xboot - avg.xboot) ^ 2 , na.rm = TRUE)
return(sqrt(v1))
boot.mean.square <- rowMeans((xboot - avg.xboot) ^ 2 , na.rm = TRUE)
return(sqrt(boot.mean.square))
}

#' Leave-one-out cross-validation
Expand Down

0 comments on commit 44788f9

Please sign in to comment.