ImageVerifierCode 换一换
格式:DOCX , 页数:11 ,大小:68.44KB ,
资源ID:5867479      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/5867479.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(General Linear Model.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

General Linear Model.docx

1、General Linear ModelGeneral Linear Model4/16/02AnnouncementsBackgroundThe General Linear ModelThere are three reasons for covering this material. This material provides an introduction to the use of dummy variables. o These variables are very useful whenever you have a categorical variable, and are

2、actually more useful in standard multiple regression. This material emphasizes the importance of models o It causes (conducts, leads) us to think about how we want to go about (embark) testing models, and the alternatives ways that we can look at problems. It makes it much easier to talk about the a

3、nalysis of covariance, and related techniques, and to talk about unequal sample sizes and how we want to test them. This topic starts out as a more difficult way of doing what they already know how to do. But it then goes on to present other stuff (thing) in a much simpler way than it could be prese

4、nted in any other way.I have tried to remove much of the stuff that doesnt focus on the three reasons that I gave above. I want students to understand the general concepts, and be able to see that they could be applicable in other settings. I am not trying to show people a harder way to run an analy

5、sis of variance.The approach taken here is basically the approach that any statistical package takes, which may help explain some of the subtleties of those packages.A major subtheme is to show that the analysis of variance, the analysis of covariance, the analysis of multiple regression, and a whol

6、e bunch (host) of other things are just variations on a common theme.I want students to understand the basic idea of coding (dummy) variables, but the specifics (details) are not important.ExampleI am going to use one of the smoking examples from Spilich that we have seen in other contexts. The data

7、 file (Spilich.sav) contains data on all groups, but we are only going to look at the group that was given a standard recall task-a cognitive task.Three basic groups. Nonsmokers (people who never smoked) Delayed smokers (Smokers who had not had a cigarette for several hours) Active smokers (Smokers

8、who smoked during the task.) The dependent variable was the number of errors made during the recall task.Standard Analysis of Variance:Descriptive StatisticsGrand mean = 38.778PlotPlot with error bars (bars represent 95% CI)AnovaIt is clear that there are significant differences between groups. I wi

9、ll even go ahead and compare the Non-smokers with the combined smoking groups, and then the two smoking groups with each other. This is for comparison purposes later.I did this with the one-way procedure and standard contrasts.Here we can see that Non-smokers differ from smokers, but that the two sm

10、oking groups do not differ between themselves.The GLM approachFirst we need to code the data to indicate Groups. We already have Groups as 1, 2, and 3, but we are going to do it differently. o The reason that we have to do it differently is due to the fact that our coding is completely arbitrary. We

11、 could have coded them as 2, 1, and 3. Any regression against group membership would be entirely dependent on the order in which we coded-thats a bad thing. We will set up dummy variables that tell us whether a subject is in Group 1 or not, and whether he/she is in Group 2 or not. o I have called th

12、ese new variables NonSmoke and Delayed, because they identify those who are in those two groups. We dont need to code for Group 3, because if youre not in 1 or 2, you must be in 3. The filter variable below just selected the Cognitive task, and ignored the other two tasks. Task Group Errors distract

13、 filterNonSmokeDelayed2.00 1.00 27.00 126.00 1 1.00 .002.00 1.00 34.00 154.00 1 1.00 .002.00 1.00 19.00 113.00 1 1.00 .00 omitted2.00 2.00 48.00 113.00 1 .00 1.002.00 2.00 29.00 100.00 1 .00 1.002.00 2.00 34.00 114.00 1 .00 1.00 omitted2.00 3.00 34.00 108.00 1 -1.00 -1.002.00 3.00 65.00 191.00 1 -1.

14、00 -1.002.00 3.00 55.00 112.00 1 -1.00 -1.00 omitted (Explain why I used -1 for each dummy variable for people in the last group.This makes the intercept come out to be the grand mean, and expresses the results in distance from the grand mean, rather than distance from the mean of some arbitrary gro

15、up.This idea is important, because if we arent careful it is easy to get answers to tell us about deviations from some single group, and that usually isnt what we are after.Here we come to the first important idea. I have taken a categorical variable with 3 (k) levels and turned it into 2 (k-1)new v

16、ariables. These two variables carry all the information that the single variable did, and are more useful.Regression Approach using Dummy VariablesI will now simply predict Errors using Nonsmoke and Delayed as my predictor variables. This is a standard multiple regression.Look first at the Anova tes

17、t for the regressionF = 4.744, p = .014This is exactly the same result we got when we ran the traditional Anova.Explain why this should be.Look next at the R2 value = .184. This is nothing but eta-squaredGo to the table headed CoefficientsThe following (up to the next major heading) is material that

18、 I find important and helpful, but if it adds to information overload, set it aside for now.Note that the Intercept = 38.778. This is exactly equal to the grand mean of all the groups. Intercept equals grand mean.Note that the slope for Nonsmoke = -9.911. This is exactly equal to the difference betw

19、een the Nonsmoke mean and the grand mean.Note that the slope for Delayed = 1.157. This is the difference between the Delayed mean and the grand mean. Slope equals difference between corresponding predictor mean and grand mean.Why not have a slope for Active?It would be redundant (excessive)-if we kn

20、ow the grand mean and the deviation of the other two groups, we can compute the deviation of the 3rd group. The sum of the deviations from the mean = 0. So, the deviation of the third group is 0 - (-9.911) - 1.156 = 8.755If I had coded for Active and Delayed, and left out NonSmoke, I would get an in

21、tercept of 38.778, slope for active = 8.755, slope for Delayed = 1.157, and could compute slope for NonSmoke = -9.911. This illustrates that the choice is arbitrary and unimportant.Testing ContrastsI forgot to do one additional thing, so I went back and did it. I asked SPSS to compute deviation cont

22、rasts when it ran the Anova.Deviation contrasts are comparisons of each mean with the grand mean. (Again, it doesnt do all three-it leaves out one, which in this case was the last one.)Output below:Note that the tests and the probabilities are exactly the same as the tests (and probabilities) on the

23、 regression equation.Why should this be?What is all of this about?I want to show that Anova and Regression are basically the same procedure. The only difference here between this regression and standard multiple regression is the use of dummy variables.There are a lot of important things here, but t

24、heir importance doesnt show up until we move to more complex analyses.GLM and Factorial AnovaNow things get interesting.First, we will take the same example, but with all three tasks, and create dummy variables for the different tasks as well. (Again, we create dummy variables for only two of the ta

25、sks.)Then we create interaction dummy variables by multiplying our dummies together to create 4 new variables.Nonsmoke*Patrec, Nonsmoke*Cogit, Delayed*Patrec, and Delayed*CognitThe overall Factorial Anova follows:Regression approachWe will start with the complete multiple regression using all dummy

26、variables as predictors. Here we are trying to explain variance in errors as a function of everything we know about groups, tasks, and their interactions.RegressionComment on SSregression as being equivalent to Model in regular Anova (Explain why 8 df.) 10-2=8Comment on the error term.This error ter

27、m is all of the variance in errors than can not be explained on the basis of groups, tasks, or their interactions. This is the standard error term in the factorial analysis of variance.Now students should understand why SPSS presents the Anova summary table the way it does, even if that is a confusi

28、ng way to have chosen to present it.Removing the Interaction Terms gives:The difference in the SSregression is 31744.726 - 29016.074 = 2728.652. This is the SS for the interaction term in the Anova.Removing the Task Terms (after replacing interaction) gives:If we subtract this SSregression from the

29、SSregression in full model, we get31744.726 - 3083.200 = 28661.526This is the effect of TaskLastly, look at the model with dummy variables for Task and Interaction, but no dummy variables for ConditionHere the difference between the full and reduced models is31744.726 - 31390.178 = 354.548This is th

30、e effect of Condition.Notice that each of this is basically what we called a hierarchical model earlier. The difference between the full model and a reduced model is what the extra variable(s) explain over an above (controlling for) the other variables.From here I get the following models:ModelSSregDifferenceSSerrorEffectFull 31744.72613587.200ErrorMain effects29016.1742728.652InteractionTask. + Interaction31390.178354.548ConditionCond + Interaction3083.20028661.526TaskBut we arent done.Yes we are for class. I have left the rest

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1