SPSS混合线性模型.ppt
《SPSS混合线性模型.ppt》由会员分享,可在线阅读,更多相关《SPSS混合线性模型.ppt(83页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、2OutlineClassification of EffectsRandom EffectsTwo-Way Random LayoutSolutions and estimatesGeneral linear modelFixed Effects ModelsThe one-way layoutMixed Model theoryProper error termsTwo-way layoutFull-factorial modelContrasts with interaction termsGraphing Interactions3Outline-Contd Repeated Meas
2、ures ANOVA Advantages of Mixed Models over GLM.4Definition of Mixed Models by their component effectsMixed Models contain both fixed and random effectsFixed Effects: factors for which the only levels under consideration are contained in the coding of those effectsRandom Effects: Factors for which th
3、e levels contained in the coding of those factors are a random sample of the total number of levels in the population for that factor.5Examples of Fixed and Random EffectsFixed effect: Sex where both male and female genders are included in the factor, sex. Agegroup: Minor and Adult are both included
4、 in the factor of agegroupRandom effect: Subject: the sample is a random sample of the target population6Classification of effectsThere are main effects: Linear Explanatory Factors There are interaction effects: Joint effects over and above the component main effects.78Classification of Effects-cont
5、dHierarchical designs have nested effects. 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 som
6、etimes be fixed or random. Their classification 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 experime
7、ntal group and the other is the control group. 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
8、 the trials. Trial is therefore a within-subject 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
9、 level with those of other levels of the same effect.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,
10、and 3 might be the pre, post, and follow-up observations on each 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 e
11、ffect, whereas Trial is a within subjects effect.14The General Linear ModelThe 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 factor
12、ial modelIf an interaction term were included, the formula would beijiiijijyeThe 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 In
13、teractionsIf 3-way interactions are in the model, then the main effects 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 termi
14、nology, the general linear model may be expressed asYXwhereYtheobserved datavectorXthedesignmatrixthevectorof unknown fixed effect parametersthevectorof errors18AssumptionsOf the general linear model( )var( )var( )( )EIYIE YX22019General Linear Model Assumptions-contd1. Residual Normality.2. Homogen
15、eity of error variance3. Functional form of Model: Linearity of Model4. No Multicollinearity5. 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 vi
16、olations of these assumptions.We will discuss recourses when these assumptions are violated.20Explanation of these assumptionsFunctional form of Model: Linearity of Model: These models only analyze the linear relationship.Independence of observationsRepresentativeness of sampleResidual Normality: So
17、 the alpha regions of the significance tests are properly defined.Homogeneity of error variance: So the confidence limits may be easily found.No Multicollinearity: Prevents efficient estimation of the parameters.No autocorrelation of errors: Autocorrelation inflates the R2 ,F and t tests. No influen
18、tial outliers: They bias the parameter estimation.21Diagnostic tests for these assumptionsFunctional form of Model: Linearity of Model: Pair plotIndependence of observations: Runs testRepresentativeness of sample: Inquire about sample designResidual Normality: SK or SW testHomogeneity of error varia
19、nce Graph of Zresid * ZpredNo Multicollinearity: Corr of XNo autocorrelation of errors: ACFNo 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 Resi
20、duals( )( )()isiiisiiieeshwhereestudentized residualsstandard deviationwhereithobsisdeletedhleverage statistic21Belsley et al (1980) recommend the use of studentizedResiduals to determine whether there is an outlier.24Influence of OutliersLeverage is measured by the diagonal components of the hat ma
21、trix.The hat matrix comes from the formula for the regression of Y.()(),YXXX XX Ywhere XX XXthe hatmatrix HThereforeYHY1125Leverage and the Hat matrixThe hat matrix transforms Y into the predicted scores.The diagonals of the hat matrix indicate which values will be outliers or not. The diagonals are
22、 therefore measures of leverage.Leverage is bounded by two limits: 1/n and 1. The closer the leverage is to unity, the more leverage the value has.The trace of the hat matrix = the number of variables in the model.When the leverage 2p/n then there is high leverage according to Belsley et al. (1980)
23、cited in Long, J.F. Modern Methods of Data Analysis (p.262). For smaller samples, Vellman and Welsch (1981) suggested that 3p/n is the criterion.26Cooks DAnother measure of influence.This is a popular one. The formula for it is:()iiiiiheCook s Dphsh22111Cook and Weisberg(1982) suggested that values
24、of D that exceeded 50% of the F distribution (df = p, n-p)are large.27Cooks D in 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.
25、If observational outlier is correct, examine the dffits option to see the influence on the fitting statistics. 4. This will show the standardized influence of the observation on the fit. If the influence of the outlier is bad, then consider removal or replacement of it with imputation. 29Decompositi
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- SPSS 混合 线性 模型
限制150内