Learn R Programming

sasLM (version 0.5.0)

CIest: 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

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

Details

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

Examples

Run this code
# NOT RUN {
CIest(log(CMAX) ~ SEQ/SUBJ + PRD + TRT, BEdata, "TRT", c(-1, 1), 0.90) # 90% CI
# }

Run the code above in your browser using DataLab