CI_g: Calculates a confidence interval for a standardized mean...

Description Usage Arguments Value Examples

View source: R/confidence-interval-functions.R

Description

Calculates a confidence interval for a g_mlm object, using either a central t distribution (for a symmetric interval) or a non-central t distribution (for an asymmetric interval).

Usage

1
CI_g(g, cover = 0.95, bound = 35, symmetric = TRUE)

Arguments

g

an estimated effect size object of class g_mlm.

cover

confidence level.

bound

numerical tolerance for non-centrality parameter in qt.

symmetric

If TRUE (the default), use a symmetric confidence interval. If FALSE, use a non-central t approximation to obtain an asymmetric confidence interval.

Value

A vector of lower and upper confidence bounds.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(nlme)
data(Bryant2016, package = "lmeInfo")
Bryant2016_RML1 <- lme(fixed = outcome ~ treatment,
                       random = ~ 1 | school/case,
                       correlation = corAR1(0, ~ session | school/case),
                       data = Bryant2016)
Bryant2016_g1 <- g_mlm(Bryant2016_RML1, p_const = c(0,1), r_const = c(1,1,0,1),
                       infotype = "expected", returnModel = TRUE)
CI_g(Bryant2016_g1, symmetric = TRUE)
CI_g(Bryant2016_g1, symmetric = FALSE)

lmeInfo documentation built on Feb. 2, 2021, 5:12 p.m.