フィルターのクリア

Dummyvar coding in fitlme

1 回表示 (過去 30 日間)
Chen Gafni
Chen Gafni 2016 年 5 月 17 日
コメント済み: the cyclist 2016 年 5 月 17 日
Can anyone explain the difference between different methods of dummyvar coding (reference, effects, and full) and when one should use each?
Thanks, Chen

採用された回答

the cyclist
the cyclist 2016 年 5 月 17 日
In reference coding, one of the categories is the "reference group". The intercept will be for that group, and effects for other groups are relative to that one. (This is appropriate coding if you want to compare all other groups as deviations from some baseline. For example, you might consider "non-drinkers" as a baseline, and then categories "1-6 drinks/week", "7-13 drinks/week", etc, as deviations from the baseline.)
In effects coding, there is no reference group. The intercept will correspond to the mean of all groups, and effects for all groups are relative to mean. (This is appropriate when no group is appropriate as a baseline. For example, "Republicans", "Democrats", "Green Party", etc., might have no particular reference group.)
I'm not clear on the use of "full". My guess is that this is most relevant when one is testing hypotheses between particular groups, but I really don't know for sure. (A fair amount googling did not clarify this for me.)
  2 件のコメント
the cyclist
the cyclist 2016 年 5 月 17 日
Moved this comment here (from an "answer"):
Chen Gafni commented:
Thanks for the clear explanation!
the cyclist
the cyclist 2016 年 5 月 17 日
No problem. The best form of thanks is upvoting and/or accepting answers that were helpful. This rewards the contributor, and can point future users to good answers.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnalysis of Variance and Covariance についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by