SOURCEBOOK

R | Data Analysis

Confidence Intervals

Prior to the steps below, enter the data as appropriate for the analyses (described elsewhere).

Obtaining Descriptive Statistics

Get the mean and standard deviation for the variable.

describeMeans(Outcome)

Obtaining Inferential Statistics

Get the mean and its confidence interval.

t.test(Outcome)$conf.int