CI_g: Approximate confidence interval for BC-SMD effect size...

Description Usage Arguments Value Examples

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

Description

Calculates an approximate confidence interval given a g_REML or g_HPS object, based on a non-central t approximation.

Usage

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

Arguments

g

an estimated effect size object of class g_REML or g_HPS

cover

confidence level

bound

numerical tolerance for non-centrality parameter in qt.

Value

A vector of upper and lower confidence bounds.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(Laski)
Laski_RML <- lme(fixed = outcome ~ treatment,
                 random = ~ 1 | case, 
                 correlation = corAR1(0, ~ time | case), 
                 data = Laski)
Laski_g <- g_REML(Laski_RML, p_const = c(0,1), 
                  r_const = c(1,0,1), returnModel=FALSE)
CI_g(Laski_g)

Laski_HPS <- with(Laski, effect_size_MB(outcome, treatment, case, time))
CI_g(Laski_HPS)

jepusto/scdhlm documentation built on Aug. 23, 2018, 6:54 a.m.