SPSS混合线性模型课件.ppt
- 【下载声明】
1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
3. 本页资料《SPSS混合线性模型课件.ppt》由用户(ziliao2023)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- SPSS 混合 线性 模型 课件
- 资源描述:
-
1、1Mixed Analysis of Variance Models with SPSSRobert A.Yaffee,Ph.D.Statistics,Social Science,and Mapping GroupInformation Technology Services/Academic Computing ServicesOffice location:75 Third Avenue,Level C-3Phone:212-998-34022Outline1.Classification of Effects2.Random Effects1.Two-Way Random Layout
2、2.Solutions and estimates3.General linear model1.Fixed Effects Models1.The one-way layout4.Mixed Model theory1.Proper error terms5.Two-way layout6.Full-factorial model1.Contrasts with interaction terms2.Graphing Interactions3Outline-Contd Repeated Measures ANOVA Advantages of Mixed Models over GLM.4
3、Definition of Mixed Models by their component effects1.Mixed Models contain both fixed and random effects2.Fixed Effects:factors for which the only levels under consideration are contained in the coding of those effects3.Random Effects:Factors for which the levels contained in the coding of those fa
4、ctors are a random sample of the total number of levels in the population for that factor.5Examples of Fixed and Random Effects1.Fixed effect:2.Sex where both male and female genders are included in the factor,sex.3.Agegroup:Minor and Adult are both included in the factor of agegroup4.Random effect:
5、1.Subject:the sample is a random sample of the target population6Classification of effects1.There are main effects:Linear Explanatory Factors 2.There are interaction effects:Joint effects over and above the component main effects.78Classification of Effects-contdHierarchical designs have nested effe
6、cts.Nested effects are those with subjects within groups.An example would be patients nested within doctors and doctors nested within hospitalsThis could be expressed bypatients(doctors)doctors(hospitals)910Between and Within-Subject effectsSuch effects may sometimes be fixed or random.Their classif
7、ication depends on the experimental designBetween-subjects effects are those who are in one group or another but not in both.Experimental group is a fixed effect because the manager is considering only those groups in his experiment.One group is the experimental group and the other is the control gr
8、oup.Therefore,this grouping factor is a between-subject effect.Within-subject effects are experienced by subjects repeatedly over time.Trial is a random effect when there are several trials in the repeated measures design;all subjects experience all of the trials.Trial is therefore a within-subject
9、effect.Operator may be a fixed or random effect,depending upon whether one is generalizing beyond the sampleIf operator is a random effect,then the machine*operator interaction is a random effect.There are contrasts:These contrast the values of one level with those of other levels of the same effect
10、.11Between Subject effects Gender:One is either male or female,but not both.Group:One is either in the control,experimental,or the comparison group but not more than one.12Within-Subjects Effects These are repeated effects.Observation 1,2,and 3 might be the pre,post,and follow-up observations on eac
11、h person.Each person experiences all of these levels or categories.These are found in repeated measures analysis of variance.13Repeated Observations are Within-Subjects effects Trial 1 Trial 2 Trial 3 GroupGroup is a between subjects effect,whereas Trial is a within subjects effect.14The General Lin
12、ear Model1.The main effects general linear model can be parameterized as()()()exp(,)ijijijijiijjijYbwhereYobservation for ithgrand mean an unknown fixed parmeffect of ith value ofabeffect of jth value of b berimental errorN2015A factorial modelIf an interaction term were included,the formula would b
13、eijiiijijyeThe interaction or crossed effect is the joint effect,over and above the individual main effects.Therefore,the main effects must be in the model for the interaction to be properly specified.()()i jijijyy16Higher-Order InteractionsIf 3-way interactions are in the model,then the main effect
14、s and all lower order interactions must be in the model for the 3-way interaction to be properly specified.For example,a 3-way interaction model would be:ijkijkijikjkijkijkyabcabacbcabce17The General Linear Model In matrix terminology,the general linear model may be expressed asYXwhereYtheobserved d
15、atavectorXthedesignmatrixthevectorof unknown fixed effect parametersthevectorof errors18AssumptionsOf the general linear model()var()var()()EIYIE YX22019General Linear Model Assumptions-contd1.Residual Normality.2.Homogeneity of error variance3.Functional form of Model:Linearity of Model4.No Multico
16、llinearity5.Independence of observations6.No autocorrelation of errors 7.No influential outliersWe have to test for these to be sure that the model is valid.We will discuss the robustness of the model in face of violations of these assumptions.We will discuss recourses when these assumptions are vio
17、lated.20Explanation of these assumptions1.Functional form of Model:Linearity of Model:These models only analyze the linear relationship.2.Independence of observations3.Representativeness of sample4.Residual Normality:So the alpha regions of the significance tests are properly defined.5.Homogeneity o
18、f error variance:So the confidence limits may be easily found.6.No Multicollinearity:Prevents efficient estimation of the parameters.7.No autocorrelation of errors:Autocorrelation inflates the R2,F and t tests.8.No influential outliers:They bias the parameter estimation.21Diagnostic tests for these
19、assumptions1.Functional form of Model:Linearity of Model:Pair plot2.Independence of observations:Runs test3.Representativeness of sample:Inquire about sample design4.Residual Normality:SK or SW test5.Homogeneity of error variance Graph of Zresid*Zpred6.No Multicollinearity:Corr of X7.No autocorrelat
20、ion of errors:ACF8.No influential outliers:Leverage and Cooks D.22Testing for outliersFrequencies analysis of stdres cksd.Look for standardized residuals greater than 3.5 or less than 3.5 And look for Cooks D.23Studentized Residuals()()()isiiisiiieeshwhereestudentized residualsstandard deviationwher
21、eithobsisdeletedhleverage statistic21Belsley et al(1980)recommend the use of studentizedResiduals to determine whether there is an outlier.24Influence of Outliers1.Leverage is measured by the diagonal components of the hat matrix.2.The hat matrix comes from the formula for the regression of Y.()(),Y
22、XXX XX Ywhere XX XXthe hatmatrix HThereforeYHY1125Leverage and the Hat matrix1.The hat matrix transforms Y into the predicted scores.2.The diagonals of the hat matrix indicate which values will be outliers or not.3.The diagonals are therefore measures of leverage.4.Leverage is bounded by two limits:
23、1/n and 1.The closer the leverage is to unity,the more leverage the value has.5.The trace of the hat matrix=the number of variables in the model.6.When the leverage 2p/n then there is high leverage according to Belsley et al.(1980)cited in Long,J.F.Modern Methods of Data Analysis(p.262).For smaller
24、samples,Vellman and Welsch(1981)suggested that 3p/n is the criterion.26Cooks D1.Another measure of influence.2.This is a popular one.The formula for it is:()iiiiiheCook s Dphsh22111Cook and Weisberg(1982)suggested that values of D that exceeded 50%of the F distribution(df=p,n-p)are large.27Cooks D i
25、n SPSSFinding the influential outliersSelect those observations for which cksd (4*p)/n Belsley suggests 4/(n-p-1)as a cutoffIf cksd (4*p)/(n-p-1);28What to do with outliers1.Check coding to spot typos2.Correct typos3.If observational outlier is correct,examine the dffits option to see the influence
展开阅读全文