1 / 36

General Linear Model

General Linear Model. Generalized Linear Model. Generalized Linear Mixed Model. General Linear Model. Generalized Linear Model. Generalized Linear Mixed Model. GLMM. LMM. Generalized Linear Mixed Model. LMEM. HLM. Multilevel Model. Tagliamonte & Baayen (2012 : 7 of preprint).

breck
Télécharger la présentation

General Linear Model

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. General Linear Model Generalized Linear Model GeneralizedLinearMixed Model

  2. General Linear Model Generalized Linear Model GeneralizedLinearMixed Model

  3. GLMM LMM GeneralizedLinearMixed Model LMEM HLM MultilevelModel

  4. Tagliamonte& Baayen(2012: 7 of preprint) Tagliamonte, S. A., & Baayen, R. H. (2012). Models, forests, and trees of York English: Was/were variation as a case study for statistical practice. Language Variation and Change, 24(02), 135-178.

  5. The Beauty of Mixed Models • Account for clusters without averaging • Different distributions (generalized LMM) • Interpretation at the trial-level • Everything in one model • Excellent for individual differences studies (cf. Drager & Hay, 2012; Dan Mirman’s work) More Power!! (see e.g., Barr et al., 2013)

  6. Problems of Mixed Models • Issues surrounding p-values • People misuse them … in a way that doesn’t improve Type I error rate(Schielzeth & Forstmeier, 2009; Barr et al., 2013) • Sometimes take A LOT of time • Some models don’t converge

  7. The Linear Model response ~ intercept + slope * fixed effect + error structural partsystematic partdeterministic part probabilistic part stochastic partrandom part

  8. The Linear Mixed Effects Model response ~ intercept + slope * fixed effect + error structural partsystematic partdeterministic part probabilistic part stochastic partrandom part

  9. Important terminology assumed to be constantacross experiments StructuralPart StochasticPart “Fixed-effects factors are those in which the populations to which we wish to generalize are precisely the levels represented in our analysis.” Fixed effect Random effect - repeatable - non-repeatable - systematic influence - random influence - exhaust the population- sample the population - generally of interest - often not of interest - can be continuous - have to be categorical or categorical

  10. Crawley (2013: 681)

  11. Subjects as a fixed effect? NO… why: not repeatable  not systematic  often, not of interest  small subset of population

  12. Repetitions as a fixed effect? Yes… why:  repeatable  systematic [ often, not of interest] “exhausts the population”

  13. Common experimental data Subject Item... Item #1 Item... Rep 1 Rep 3 Rep 2

  14. Finnish Norwegian Swedish English German Hungarian French Romanian Italian Spanish Turkish

  15. In R: library(lme4) lmer(y ~ x + (1|subject), mydata)

  16. Random intercepts versus Random slopes

  17. Random intercepts RT (ms) Subjects

  18. Random slopes

  19. Randomintercepts RT (ms) Experiment time

  20. Randominterceptsand slopes RT (ms) Experiment time

  21. Random intercept vs. slope models Random intercept model = the fixed effect is evaluated against an error term that captures subject- or item-specific variability in the response Random slope model = the fixed effect is evaluated against an error term that captures subject- or item-specific variability in how the fixed effect affects the response In R: (1|subject) In R: (1+pred|subject)

  22. http://anythingbutrbitrary.blogspot.com/2012/06/random-regression-coefficients-using.htmlhttp://anythingbutrbitrary.blogspot.com/2012/06/random-regression-coefficients-using.html

  23. Random intercept examples • Some people are fast responders, some people are slow responders (their “intercepts” for response time are different) • Some people are very sensitive / accurate listeners, some are less sensitive (their “intercepts” for accuracy are different) • Some people have high or low voices with respect to their gender (their “intercepts” for pitch are different)

  24. Random slope examples • Some people speed up during a long experiment,some slow down • Some people become more accurate during a long experiment, some less • Some people raise their pitch more for focus than others

  25. An example RT ~

  26. An example RT ~ Condition + (1|Subject)

  27. An example RT ~ Condition + + (1+Condition|Subject)

  28. An example RT ~ Condition + + (1+Condition|Subject) + (1|Item)

  29. An example RT ~ Condition + + (1+Condition|Subject) + (1+Condition|Item)

  30. An example RT ~ Condition + TrialOrder + + (1+Condition|Subject) + (1+Condition|Item)

  31. An example RT ~ Condition + TrialOrder + + (1+Condition+TrialOrder|Subject) + (1+Condition|Item)

  32. Model specificationfor random effects (1|subject) random intercept (0+fixedeffect|subject) random slope (1+fixedeffect|subject) … with correlation term

  33. Assumptions Absence ofCollinearity No influentialdata points Normality of Errors Homoskedasticity of Errors Independence

More Related