SOURCEBOOK

DEVISE | Data Analysis

One Sample t Test

Prior to the steps below, enter the data as appropriate for the analyses (described elsewhere). As always, the following commands should be typed directly in the R console window.

Obtaining Descriptive Statistics

Get the mean and standard deviation for the variable.

(Outcome) |> describeMoments()

Obtaining Inferential Statistics

Get the mean difference and its confidence interval.

(Outcome) |> estimateMeans(mu = 7)

Test the mean difference for statistical significance.

(Outcome) |> testMeans(mu = 7)

Get the standardized effect size for the mean difference.

(Outcome) |> standardizeMeans(mu = 7)