ConfInterval {npclust}R Documentation

Confidence Interval

Description

Construct confidence intervals for effect sizes.

Usage

ConfInterval(object, level, side="two.sided",
adjust=NULL)

Arguments

object

a fitted model object from ncda().

level

the confidence level required.

side

a character string specifying the side of the confidence bound, must be one of "two.sided" (default), "left" or "right".

adjust

an optional character string specifying the multiple adjustment method, by default there is no adjustment, if specified, must be one of "Bonferroni" or "Working-Hotelling". You can specify just the initial letter.

Value

A list or a vector. If the confidence interval is two-sided, lower and upper bounds are stored in lists for each nonparametric effect size estimate. Otherwise, the lower/upper bounds are stored in vectors in the order of the effect size estimates.

Examples

skin_analysis <- ncda(score~tx, skin, intervention, subject,
                      indicator=c("control","treatment"),
                      Contrast=matrix(c(1,-1), nrow = 1))
ConfInterval(skin_analysis,0.95)

ARTIS_analysis <- ncda(emot_pqol~tx, ARTIS, intervention, homeid,
                       indicator = c("0","1"))
ConfInterval(ARTIS_analysis,0.95)
ConfInterval(ARTIS_analysis,0.95,"two.sided","B")
ConfInterval(ARTIS_analysis,0.95,"left","W")


[Package npclust version 0.1.0 Index]