CIest: Confidence Interval Estimation

View source: R/CIest.R

CIestR Documentation

Confidence Interval Estimation

Description

Get point estimate and its confidence interval with given contrast and alpha value using t distribution.

Usage

  CIest(Formula, Data, Term, Contrast, conf.level=0.95) 

Arguments

Formula

a conventional formula for a linear model

Data

a data.frame to be analyzed

Term

a factor name to be estimated

Contrast

a level vector. Level is alphabetically ordered by default.

conf.level

confidence level of confidence interval

Details

Get point estimate and its confidence interval with given contrast and alpha value using t distribution.

Value

Estimate

point estimate of the input linear contrast

Lower CL

lower confidence limit

Upper CL

upper confidence limit

Std. Error

standard error of the point estimate

t value

value for t distribution

Df

degree of freedom

Pr(>|t|)

probability of larger than absolute t value from t distribution with residual's degree of freedom

Author(s)

Kyun-Seop Bae k@acr.kr

Examples

  CIest(log(CMAX) ~ SEQ/SUBJ + PRD + TRT, BEdata, "TRT", c(-1, 1), 0.90) # 90% CI

sasLM documentation built on Oct. 2, 2024, 9:06 a.m.