CIest: Confidence Interval Estimation

Description Usage Arguments Details Value Author(s) Examples

View source: R/CIest.R

Description

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

Usage

1
  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 constrast

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

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

Example output

Point Estimate    Lower Limit    Upper Limit 
    0.02194401     0.01403818     0.02984985 

sasLM documentation built on July 14, 2021, 9:07 a.m.