mjskay / mjskay/ARTool

Explain model spec for Error in examples using Higgins1990Table5

Open
#11 0 comments 3 reactions 1 assignee View on GitHub

@mjskay is already working on this.

Since Apr 10, 2016.

documentation
Dominant language
R
Stars
66
Forks
9
PR merge metrics
No merged PRs in 30d

Description

E.g., why Error(Tray) works instead of Error(Tray/Fertilizer)

short answer: there is only one observation per Tray.

*long answer (rough): *

For more on split-plot designs, see an explanation here: http://stats.stackexchange.com/a/13837. Relating that example to the ARTool example, Diet corresponds to Moisture, Time to Fertilizer, and Subject to Tray.

Strictly speaking, following a split-plot design, the model specification would be:

m <- art(DryMatter ~ Moisture*Fertilizer + Error(Tray/Fertilizer), data=Higgins1990Table5)

However, we can simplify the model specification for this particular dataset. Error(Tray/Fertilizer) is equivalent to Error(Tray + Tray:Fertilizer). Since there is only one observation per Tray * Fertilizer in the data, the within-Tray error cannot be distinguished from any interaction between Tray and Fertilizer. Thus, the Tray:Fertilizer error term can be dropped from the model specification, yielding:

m <- art(DryMatter ~ Moisture*Fertilizer + Error(Tray), data=Higgins1990Table5)

You can verify that both specifications yield the same results. If there were multiple observations for each Tray*Fertilizer, this would not be the case, and the first specification (with Error(Tray/Fertilizer)) would be preferred.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.