Learn R Programming

scdhlm (version 0.3)

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

Description

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

Usage

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

Run this code
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)

Run the code above in your browser using DataLab