Skip to content

MANE 6313

Week 4, Module B

Student Learning Outcome

Analyze simple comparative experiments and experiments with a single factor.

Module Learning Outcome

Analyze a one-way analysis of variance problem using R.


One-Way Analysis of Variance

Sample Problem


Anova in R Documentation


Step 1 - Load and Plot Data

Data Analysis


Step 1 Comments

  • Create dataframe mortar to hold results
  • Used new syntax to create box plot

  • Strength~Additive - creates Box plot for each value of additive in data set

  • New argument: data=mortar
  • Does not require mortar\(\$\)Strength or mortar\(\$\)Additive

  • Check for equal means and variances using Box plot


Step 2 - Analyze Problem

R aov Command


Step 2 - Analyze Problem (Method 2)

R oneway.test Command


Step 3 - Check Fitted Values

Fitted Values from Method 1


R Demonstration

  • Load Data
  • Box Plot
  • One-way ANOVA
  • Print Fitted Values