1 / 15

General Linear Model

General Linear Model. Recall Dummy Coding. Dummy coding 0s and 1s k-1 predictors will go into the regression equation leaving out one reference category (e.g. control) Coefficients will be interpreted as change with respect to the reference variable (the one with all zeros)

larya
Download Presentation

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

  2. Recall Dummy Coding • Dummy coding • 0s and 1s • k-1 predictors will go into the regression equation leaving out one reference category (e.g. control) • Coefficients will be interpreted as change with respect to the reference variable (the one with all zeros) • In this case group 3

  3. General Equations • When assumptions are met, average error, e = 0 • In the end we can see the intercept as the mean for Group 3, the reference group; and the coefficients for the coded variables are the mean difference between that group’s mean and the reference group mean

  4. The Structural Model • Generally we write the structural model for a One-way ANOVA where a person’s score in group j is a function of the grand mean of Y, the effect of being in group j, and error • The null hypothesis is that the coefficients are zero, which is equivalent to saying the means are equal

  5. Using deviation regressors, in which the coding weights are constrained to sum to 0, tests this explicitly Here our reference group gets -1 for each variable The Structural Model

  6. General Equations • From before • The prediction for any group is equivalent to the grand mean of Y plus the effect of being in that group • In other words, for each group member the predicted value is the mean for that group

  7. Factorial Design • Recall for the general one-way anova • Where: • μ = grand mean •  = effect of Treatment A (μa – μ) • ε = within cell error • So a person’s score is a function of the grand mean, the treatment mean, and within cell error

  8. Effects for 2-way Population main effect associated with the treatment Aj (first factor): Population main effect associated with treatment Bk (second factor): The interaction is defined as , the joint effect of treatment levels j and k (interaction of  and ) so the linear model is: Each person’s score is a function of the grand mean, the treatment means, and their interaction (plus w/in cell error).

  9. The general linear model • The interaction is a residual: • Plugging in  and  leads to:

  10. GLM Factorial ANOVA Statistical Model: Statistical Hypothesis: The interaction null is that the cell means do not differ significantly (from the grand mean) outside of the main effects present, i.e. that this residual effect is zero

  11. Comparison to regression • Data using deviation coding • ANOVA output top with bold correlates to the regression output using an interaction product term1 F1 F2 DV 1.00 -1.00 1.00 1.00 -1.00 2.00 1.00 -1.00 1.00 -1.00 -1.00 2.00 -1.00 -1.00 3.00 -1.00 -1.00 2.00 1.00 1.00 4.00 1.00 1.00 3.00 1.00 1.00 4.00 -1.00 1.00 1.00 -1.00 1.00 3.00 -1.00 1.00 2.00

  12. Repeated Measures • One way design for Repeated Measures has two effects • Effect of the treatment at a particular time • Effect of the between subjects factor

  13. Repeated Measures • The basic linear model thus has 2 ‘main’ effects though typically only one is of interest • The interaction that would normally be present in such a situation is relegated to error variance • So the error variance equals the subject x treatment interaction + random error

  14. Factorial Repeated Measures • With Factorial RM we have unique error for each main effect and interaction

  15. Mixed Design • β here is the repeated measure • The RM factor and interaction are tested on the same error term (in parentheses)

More Related