s-news
[Top] [All Lists]

[S] multicomp and nested models

To: "S-NEWS" <s-news@wubios.wustl.edu>
Subject: [S] multicomp and nested models
From: "Ed Callahan" <callahan@envstat.com>
Date: Sat, 6 Jun 1998 17:09:12 -0500
Importance: Normal
Sender: owner-s-news@wubios.wustl.edu
Does anyone know how to get multicomp() to work with nested models?  Below
is an example function that demonstrates what I'm trying to do.  It gives me
the error message "focus must be a single factor".  Thanks for any ideas.

Ed

function()
{
        whole <- as.factor(rep(LETTERS[1:3], 10))
        sub <- as.factor(c(rep("a", 15), rep("b", 15)))
        y <- rnorm(30)
        assign("test.df", data.frame(y, whole, sub), w = 1)
        test.aov <- aov(y ~ whole/sub, data = test.df)
        multicomp(test.aov, focus = "sub")
}

----------------------------------
  Edward Callahan
  Environmental Statistics

  callahan@envstat.com
  http://www.envstat.com
----------------------------------

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [S] multicomp and nested models, Ed Callahan <=