科学の箱

科学・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の違いをもとにしてそれぞれの関数について調べてみる。 […]

oneway.test, aov, anovaの違い-2 | 科学の箱 へ返信する コメントをキャンセル

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

関連記事

no image

因子分析

因子分析とは 因子分析では複雑な現象を単純な要因で理解するための手法。集められた個別のデータは結果である目的変数とその目的変数の原因である説明変数に分かれる。目的変数を観察できた結果とし、目的変数に影 …

no image

データフレームで層別に操作をする

Rでデータベースに似たデータを取り扱う際には、データフレームを使うことがおおい。JavaはPHPなどのプログラミング言語では、層別に集計作業をする際にはデータベース上のSQLか、データを読み込んでから …

no image

一対比較法

一対比較法では複数の対象の順位を、個別の比較結果から明らかにすることができる。例えば今5種類の携帯電話があり、好ましさの順位を知りたいとする。一対比較法を利用しなければ、回答者は5について順番をつけて …

no image

Rでのラインの表示

Rでラインを引くために関数がいくつか用意されている。 abline() 画像全体に線を引く segments() 始点と終点を指定してその間に線を引く points() “点” …

no image

回帰分析

回帰分析の手順 データを取得する。 回帰分析をする意味があるかを検討する 回帰分析のモデルを検討する 回帰分析をする 回帰分析の結果について考察する 回帰分析のメモ 回帰分析では目的変数を説明できる変 …

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

side bar top



アーカイブ

カテゴリー