Skip to content

Commit 49840e6

Browse files
authored
Merge pull request #140 from timcadman/dev
fix: corrected formula for pooled se
2 parents b097c5e + ccc4dd1 commit 49840e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: dsHelper
22
Type: Package
33
Title: Helper Functions for Use with 'DataSHIELD'
4-
Version: 1.5
4+
Version: 1.5.1
55
Description: Often we need to automate things with 'DataSHIELD'. These functions help to do that.
66
Authors@R:
77
c(person(given= "Tim",

R/pool.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ rubinBetweenVar <- function(coefs, means, m) {
208208
#'
209209
#' @noRd
210210
rubinPooledSe <- function(within_var, between_var, m) {
211-
return(within_var + between_var + (between_var / m))
211+
return(sqrt(within_var + between_var + (between_var / m)))
212212
}
213213

214214
#' Calculate the Rubin's Z statistic.

0 commit comments

Comments
 (0)