An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111011/152e2a28/attachment.pl>
Perform 20 x one-way anova in 1 go
3 messages · Joshua Wong, C.H., Kenneth Takagi
2 days later
This is one solution ?sapply sapply(data.frame(iris$Sepal.Length, iris$Sepal.Width, iris$Petal.Length, iris$Petal.Width), function(x) (summary(aov(x~iris$Species))))
On Tue, Oct 11, 2011 at 5:10 PM, Joshua Wong <gryphonmonsterr at yahoo.com> wrote:
Hi Guys, I have about 20 continous predictors and I want to do one-way anova to check the significance of each variable against the dependent variable. Apart from doing running the anova 20 times, is there a faster way? Thanks, Joshua ? ? ? ?[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
CH Chan
Hey,
Doesn't this give you a ridiculous Type 1 error? Maybe randomly select one result and trust it.
Try bestglm or stepwise regression maybe.
Hope that's helpful,
Ken Hutchison
On Oct 14, 2554 BE, at 12:39 AM, "C.H." <chainsawtiney at gmail.com> wrote:
This is one solution ?sapply sapply(data.frame(iris$Sepal.Length, iris$Sepal.Width, iris$Petal.Length, iris$Petal.Width), function(x) (summary(aov(x~iris$Species)))) On Tue, Oct 11, 2011 at 5:10 PM, Joshua Wong <gryphonmonsterr at yahoo.com> wrote:
Hi Guys,
I have about 20 continous predictors and I want to do one-way anova to check the significance of each variable against the dependent variable.
Apart from doing running the anova 20 times, is there a faster way?
Thanks,
Joshua
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
-- CH Chan
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.