科学の箱

科学・IT・登山の話題

R

oneway.test, aov, anovaの違い

投稿日:

RではANOVAを実行する際にoneway.test, aov, anovaを利用できる。違いが判らない。調べてみるとなんかややこしそうなのでとりあえず資料だけ集めてみた。

ONEWAY BETWEEN SUBJECTS ANOVAより

The advantage of using the oneway.test( ) function is obviously the Welch correction for nonhomogeneity. The disadvantages are it doesn’t give you a lot of information in the output, and there is no post hoc test available. The standard R function for all kinds of ANOVA is aov( ). It’s best to store the output of this function and then to extract the information you want by way of various extractor functions. This is the way we will be working with all future statistical procedures. Here is an example using the InsectSprays data…

http://tolstoy.newcastle.edu.au/R/e6/help/09/01/0939.html

The main difference is that aov() *fits* a single model and anova() *summarizes* a single model or compares two or more models.

http://r.789695.n4.nabble.com/lm-ANOVA-vs-AOV-td819452.html

The difference between the two is
intent of the analysis and the default presentation of the results.

With lm [Linear Model], the focus is on the effect of the individual
columns of the predictor matrix.  The columns are usually interpreted
as values of real-valued observations.  The regression coefficients
are usually meaningful and interesting.

With aov [Analysis Of Variance], the focus is on the effects of
factors.  These are multi-degree of freedom effects associated with
categorical variables.  The arithmetic is based on a set of dummy
variables constructed from a contrast matrix.  The individual
regression coefficients themselves are not easily interpretable.

メタ情報

inarticle



メタ情報

inarticle



-R
-

執筆者:


  1. foo-bar-baz より:

    一般論で,2群(多群)の分散が等しいという仮定はあまりにもナイーブで,それを仮定した t.test(…, var.equal=TRUE) や oneway.test(…, var.equal=TRUE) や,aov, anova は不適切でしょう。
    aov, anova の結果と一致しないからと言うことで t.test(…, var.equal=FALSE) を忌避するのは根拠に欠けると思います。
    oneway.test が,いわゆる分散分析表を提示しないからというだけで難癖付けるのもどうかと思います。oneway.test の結果に基づいて完全な分散分析表を提示する関数を作るのもそうたいしたことでもないですし,そもそも,P値一個のために無駄なスペースを使う分散分析表を提示する必要性も認められません。

  2. […] さてoneway.test, aov, anovaの違いをもとにしてそれぞれの関数について調べてみる。 […]

comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

サンプルサイズによる有意の違い

こちらでサンプル数について指摘をいただいたのでサンプル数によりp値がどのように変わるかをみてみる。  1996 2012 15~19歳 9 9 20~24歳 12 17 25~29歳 10 18 30 …

no image

Rによるやさしい統計学/4-母集団と標本

言葉の定義 推測統計、推定、点推定、区間推定、検定 標本、標本統計量、推定量、標本抽出、確率変数、確率分布、標本誤差 標本分布、標本統計量、平均、標準偏差、標準誤差 4.5 標本分布 標本平均の標本分 …

no image

分散分析のcase study

分散分析についてcase studyをしてみる。目的はRで分散分析を実行する際の手順を明確にすること、およびそれに付随するRの関数を理解することである。 目標として以下をあげておく テストデータを含め …

no image

Rによるやさしい統計学/5-統計的検定-1

5章で学ぶこと 5章では検定方法について紹介している。以下の方法について検定対象と検定する条件を理解する。 Z検定 t検定 無相関検定 独立性の検定 また検定の手順についてもまとめている。 検定方法 …

no image

splineを利用する

データが連続していない時には、となりあうデータを使ってその間の値を予測できる。簡単な例では1と2という値があり、この間を一つの値で補完すると1.5となる。補間する値を増やしていけば滑らかな曲線になる。 …

2014年5月
« 4月   6月 »
 1234
567891011
12131415161718
19202122232425
262728293031  

side bar top



アーカイブ

カテゴリー