SOURCEBOOK

DEVISE Articles

Data Analysis | Post Hoc Comparisons

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

(Outcome~Factor) |> describeMoments()

Obtaining Inferential Statistics

Get all pairwise mean difference and their confidence intervals while adjusting them for multiple comparisons. Though the confidence intervals default to 95%, they can be changed if desired.

(Outcome~Factor) |> estimatePosthoc()
(Outcome~Factor) |> estimatePosthoc(conf.level = .99)

Test all pairwise mean differences for statistical significance while adjusting them for multiple comparisons.

(Outcome~Factor) |> testPosthoc()

Get standardized mean differences for all pairwise comparisons.

(Outcome~Factor) |> standardizePosthoc()