SOURCEBOOK

DEVISE Articles

Data Analysis | One Way ANOVA

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 of the dependent variable for each of the levels.

(Outcome~Factor) |> describeMoments()

Obtaining Inferential Statistics

Get the analysis of variance source table.

(Outcome~Factor) |> describeEffect()

Test the main effect for statistical significance.

(Outcome~Factor) |> testEffect()

Get the proportion of variance accounted for by the main effect.

(Outcome~Factor) |> estimateEffect()