Skip to content

Adding SE to the output (can be an attribute) #583

Closed
@Generalized

Description

@Generalized

Calculation of a confidence interval for an effect size under multiple imputation needs to pass both the estimate and its standard error to the Rubin's pooling rule (optionally after some transformation, like Fisher's z). Currently, to get the SE of some effect size, like rank biserial (https://github.com/easystats/effectsize/blob/main/R/rank_diff.R ) I have to back-transform the estimate and either of the CI ends and divide add/subtract them and / by appropriate quantile. Would you consider adding the raw SE in the output of these functions? If you don't want to add additional field to the output, maybe just add an attribute? It will be "transparent", won't break the current data structure returned by these functions, but facilitate a lot pooling these quantities under the MICE framework.

> set.seed(1000)
> x1 <- rnorm(20, mean=3)
> x2 <- rnorm(60, mean=3.8)

> (rb <- effectsize::rank_biserial(x1, x2))
r (rank biserial) |         95% CI
----------------------------------
-0.69             | [-0.82, -0.50]

> (SE <- (atanh(rb$CI_high) - atanh(rb$r_rank_biserial)) / qnorm(0.975))
[1] 0.15

> tanh(atanh(rb$r_rank_biserial) + c(-1, 1) * stats::qnorm(0.975) * SE)
[1] -0.8151 -0.5035

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions