Learn R Programming

sasLM (version 0.3.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=c(-1, 1), Alpha=0.10)

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.

Alpha

0.05 means 95 percent and 0.10 means 90 percent confidence interval.

Value

Returns point estimate and its confidence interval

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, Term="TRT") # 90% CI
# }

Run the code above in your browser using DataLab