Skip to content

Commit

Permalink
Merge pull request #140 from timcadman/dev
Browse files Browse the repository at this point in the history
fix: corrected formula for pooled se
  • Loading branch information
timcadman authored Oct 14, 2024
2 parents b097c5e + ccc4dd1 commit 49840e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dsHelper
Type: Package
Title: Helper Functions for Use with 'DataSHIELD'
Version: 1.5
Version: 1.5.1
Description: Often we need to automate things with 'DataSHIELD'. These functions help to do that.
Authors@R:
c(person(given= "Tim",
Expand Down
2 changes: 1 addition & 1 deletion R/pool.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ rubinBetweenVar <- function(coefs, means, m) {
#'
#' @noRd
rubinPooledSe <- function(within_var, between_var, m) {
return(within_var + between_var + (between_var / m))
return(sqrt(within_var + between_var + (between_var / m)))
}

#' Calculate the Rubin's Z statistic.
Expand Down

0 comments on commit 49840e6

Please sign in to comment.