Read GENSTAT - Example Training text version

`Statistische Consulting: Softwarevertrieb - Softwaretraining - Versuchsplanung - Datenauswertung - Meinungsumfragen5 Analysis of Variance models, complex linear models and Random effects modelsIn this chapter we will show any of the theoretical background of the analysis. The focus is to train the set up of ANOVA models in GenStat. GenStat comes with a very extensive help system and in addition several PDF files which sever as a documentation and reference. You should also consult secondary literature on statistical modelling to properly use these procedures. At the beginning of each chapter you find a short introductions on how to generate the example field trails in GenStat. GENSTAT is also a good software to create field trails, although it is somewhat limited regarding the number of treatments. For complex design specialised software should be used. The design creation in GenStat always give good advice on how the analysis model for a certain design should be set up. In any case you should consult a biometrician .5.1 Basic syntax of ANOVA modelsTable 5: Notation of ANOVA models + . * / = = = = A +B A.B A*B A/B = = = = Main effects of A and B Interaction of A and B only A+B+A.B factorial structure A+A.B ­without main effect of B, but B nested within ATable 6: Examples of ANOVA Models A*B*C (A+B)*(C+D) Block/Plot/Subplot A/(B*C) = = = = = A+B+C+A.B+A.C+B.C+A.B.C full factorial model (A+B)+(C+D)+(A+B).(C+D) A+B+C+D+A.C+A.D+B.C+B.D Block+Block.Plot+Block.Plot.Subplot A+A.B+A.C+A.B.CRecommendation: Syntax of ANOVA Models You can reuse any model from the ,,input log&quot; window and copy it in an extrax script window, then edit the model to suite your needs. Whenever you are not completele sure about the syntax of teh model you should use the long form writing using ,, + &quot; and ,, . &quot;.5.2 Anaylsis example : Potatoe yield ­ Latin squarePlease restart the GENSTAT Server via ,,Restart Server&quot; (see 1.3.2).Copyright (c) 2007 by STATCON B. Schäfer, Schulstr. 2, 37213 Witzenhausen, Germany. All rights reserved.52Statistische Consulting: Softwarevertrieb - Softwaretraining - Versuchsplanung - Datenauswertung - Meinungsumfragen5.2.1 Create DesignTo create a design in GENSTAT you use the menu ,,Stats -&gt; Design -&gt; Generate Standard Design&quot;. Please choose the base design ,,Latin Square&quot; from the pull down menu of the dialog box &quot;Generate a Standard design&quot;. Also enter names for the Rows-, Column and Treatment factor as well as the &quot;Number of Levels&quot;:Graph 102: Create a Latin Square DesignClick the ,,Run&quot; button and the design will be created in form of a spreadsheet. The specialty to this particular spreadsheet is that the information about the analysis model is saved within the spreadsheet. You can check the power of the design after you hit the &quot;run&quot; button. Go back to the design creation dialog and click the &quot;Check for Power&quot; button which is visible now. You need to know some basic information like the hypothesised mean difference &quot;Size of difference to detect&quot; and an information about the standard deviation &quot;Residual Mean Square&quot;. In case the power is below 80% you want to rethink the design and could add replications to overcome the low power situation. Please insert a new column for the response values &quot;Yield&quot; via &quot;Spread -&gt; Insert -&gt; Column after current column&quot; and enter some data. Now open the menu &quot;Stats -&gt; Analysis of Variance -&gt; General...&quot; . You can save the design spreadsheet for later use via the menu ,,File&quot; and the ,,Save&quot; dialog. You should close the design after checking the results.Copyright (c) 2007 by STATCON B. Schäfer, Schulstr. 2, 37213 Witzenhausen, Germany. All rights reserved.53Statistische Consulting: Softwarevertrieb - Softwaretraining - Versuchsplanung - Datenauswertung - Meinungsumfragen5.2.2 Enter or load dataPlease restart the GENSTAT Server via ,,Restart Server&quot; (see 1.3.2).and load the file ,,Latin_Square_Data_Potato_Yield.xls&quot; using the Excel Import Wizards (see 2.1). You should convert Zeile, Spalte and Sorte to factor variables. The following data will be loaded:Table 7: data set ,,Latin_Square_Data_Potato_Yield.xls&quot; Zeile 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 5 5 5 5 5 Spalte 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 Sorte C B A D E E D C A B A E D B C B A E C D D C B E A Ertrag 22 20 39 27 34 29 29 25 30 23 29 25 34 26 27 23 27 27 32 41 33 21 24 30 335.2.3 AnalysisPlease start the ANOVA via ,,Stats -&gt; Analysis of Variances -&gt; General&quot; In the following dialog you specify the analysis model .Graph 103: Analysis of Variance : GeneralCopyright (c) 2007 by STATCON B. Schäfer, Schulstr. 2, 37213 Witzenhausen, Germany. All rights reserved.54Statistische Consulting: Softwarevertrieb - Softwaretraining - Versuchsplanung - Datenauswertung - MeinungsumfragenThe response ,,Y-Variate&quot; of the model is the yield which is named ,,Ertrag&quot; in this data file. The treatment or independent variable is the variety named ,,Sorte&quot; . Built into every latin square model is the block structure of rows*columns here called ,,Zeile*Spalte&quot;. Please see chapter 5.1 for more details on the usage of &quot;*, ., /&quot; in setting up ANOVA models.Graph 104: Latin square ANOVA modelPlease specify all other settings as shown in Graph 105 and Graph 106, then click ,,Run&quot; In jedem Fall sollten Sie als Zusatzoption die graphische Ausgabe aktivieren.Graph 105: ANOVA OptionsCopyright (c) 2007 by STATCON B. Schäfer, Schulstr. 2, 37213 Witzenhausen, Germany. All rights reserved.55Statistische Consulting: Softwarevertrieb - Softwaretraining - Versuchsplanung - Datenauswertung - MeinungsumfragenAfter you ,,Run&quot; the analysis once, you can click the ,,Save&quot; button in the Analysis of Variance&quot; dialog. To be able to check the assumption of normality of the residuals and run the appropriate test you need to save the residuals first. To be able to run a multiple comparison test or pairwise means comparison you need to save the means first.Graph 106: ANOVA SaveThe following script listings are automatically generated as commands in the Input Log (see script listing 4 and script listing 5). You can save the Input Log to reuse the command sequence later.script listing 4: Create One Way ANOVA Output&quot;General Analysis of Variance.&quot; BLOCK &quot;No Blocking&quot; TREATMENTS Sorte+Spalte+Zeile COVARIATE &quot;No Covariate&quot; ANOVA [PRINT=aovtable,information,means,%cv; FACT=1; CONTRASTS=7; FPROB=yes; PSE=diff,\ means] Ertrag APLOT [RMETHOD=simple] fitted,normal,halfnormal,histogram AGRAPH [METHOD=means]script listing 5: Saving results of the One Way ANOVADELETE [REDEFINE=yes] Kartoffel_Meantab AKEEP [RESIDUAL=Kartoffel_Residuals; FACT=32]Sorte; MEANS=Kartoffel_Meantab FSPREADSHEET [SHEET=29548864; METHOD=replace] Kartoffel_Residuals FSPREADSHEET Kartoffel_MeantabGENSTAT creates diagnostic plots and means plots for the treatment automatically . The diagnostics for this example look very good and allow the statement that the data comply with the assumtion of normal residuals without any further statistical analysis. In Normal plot as well as in the Half Normal plot a few value seem to be outstanding. Those will also be found in the list of &quot;large residuals&quot; in the output.Copyright (c) 2007 by STATCON B. Schäfer, Schulstr. 2, 37213 Witzenhausen, Germany. All rights reserved.56Statistische Consulting: Softwarevertrieb - Softwaretraining - Versuchsplanung - Datenauswertung - MeinungsumfragenGraph 107: Example Potatoe yields ­ Diagnostic plotsGraph 108: Potatoe yields ­ MeansThe result of the numerical analysis is listed in the following Output list .Ouput 5: Result of the One Way ANOVAAnalysis of varianceVariate: Ertrag Source of variation Sorte Spalte Zeile Residual Total d.f. 4 4 4 12 24 s.s. 330.00 150.00 20.40 175.60 676.00 m.s. 82.50 37.50 5.10 14.63 v.r. 5.64 2.56 0.35 F pr. 0.009 0.093 0.840Message: the following units have large residuals. *units* 3 *units* 46.00 -6.40Tables of meansVariate: Ertrag Grand mean 28.40 Sorte A 31.60 1 27.20 1 28.40 B 23.20 2 24.40 2 27.20 C 25.40 3 29.80 3 28.20 D 32.80 4 29.00 4 30.00 E 29.00 5 31.60 5 28.20SpalteZeileCopyright (c) 2007 by STATCON B. Schäfer, Schulstr. 2, 37213 Witzenhausen, Germany. All rights reserved.57Statistische Consulting: Softwarevertrieb - Softwaretraining - Versuchsplanung - Datenauswertung - MeinungsumfragenStandard errors of meansTable rep. d.f. e.s.e. Sorte 5 12 1.711 Spalte 5 12 1.711 Zeile 5 12 1.711Standard errors of differences of meansTable rep. d.f. s.e.d. Sorte 5 12 2.419 Spalte 5 12 2.419 Zeile 5 12 2.419Stratum standard errors and coefficients of variationVariate: Ertrag d.f. 12 s.e. 3.825 cv% 13.55.2.4 Pairwise comparisonIt is not possible in GenStat to run pairwise LS means comparisons using the menus. If the code for LS-means comparisons is generated manually it works fine. This chapter shows an example. Before you can apply the script to a specific analysis you have to find some information in the previous output and paste that into the script. You have to supply the name of the table of means and information about the standard deviation and degrees of freedom. Besides the overly conservative Bonferroni method you can also run Tukey and Sidak tests. VSN knows about this problem and will add this option to Version 10 of GENSTAT.script listing 6: Create a pairwise comparison of meansData from table ,,Stratum standard errors and coefficients of variation&quot; VARIANCE = s.e. from the Output has to be squared DF = d.f. from OutputALLPAIRWISE [METHOD=Bonferroni; DIRECTION=descending; PROBABILITY=0.05]\ MEANS=Kartoffel_Meantab; REPLICATION=5; VARIANCE=14.631; DF=12Ouput 6: Result of the pairwise comparison on the basis of a One Way ANOVAAll pairwise comparisons are tested. Variance = 14.6310 with 12 degrees of freedom Bonferroni test Experimentwise error rate = 0.0500 Comparisonwise error rate = 0.0050 Mean D vs Mean A t 0.496 significant NoCopyright (c) 2007 by STATCON B. Schäfer, Schulstr. 2, 37213 Witzenhausen, Germany. All rights reserved.58Statistische Consulting: Softwarevertrieb - Softwaretraining - Versuchsplanung - Datenauswertung - MeinungsumfragenD D D A A A E E C Identifier D A E C BE C B E C B C B B Mean 32.80 31.60 29.00 25.40 23.201.571 3.059 3.968 1.075 2.563 3.472 1.488 2.398 0.909No No Yes No No Yes No No No| | | | | | |5.2.5 Test if data are NormalThe Normality test is started via the Graph menu . Please specify as shown in Graph 110 .Graph 109: Menu to Test if data are NormalGraph 110: Options of the Normality testThe script command is automatically created by GenStat :Copyright (c) 2007 by STATCON B. Schäfer, Schulstr. 2, 37213 Witzenhausen, Germany. All rights reserved.59Statistische Consulting: Softwarevertrieb - Softwaretraining - Versuchsplanung - Datenauswertung - Meinungsumfragenscript listing 7: Graphical Test of NormalityDPROBABILITY [PRINT=parameters,tests;DISTRIBUTION=NORMAL;METHOD=quantile;QMETHOD=standardized;\ BANDS=simultaneous;ALPHA=0.95;PLOT=reference] Kartoffel_ResidualsOuput 7: Numerical results of the Normality testsCritical values of test statistics (marginal tests)Test statistic Anderson-Darling Cramer-von Mises Watson 15% 0.576 0.091 0.085 10% 0.656 0.104 0.096 5% 0.787 0.126 0.116 2.5% 0.918 0.148 0.136 1% 1.092 0.178 0.163Marginal testsVariate Anderson-Darling Cramer-von Mises 1 0.3176 0.0415 ?, *, ** indicate significance at 10%, 5% and 1% levels respectively Watson 0.0415The graphical analysis shows that all residuals are within the limits of the confidence interval, which is an indication that the residuals are following a gaussian normal distribution. The result is congruent with the numerical analysis .Graph 111: Graphical Output of the Normality testCopyright (c) 2007 by STATCON B. Schäfer, Schulstr. 2, 37213 Witzenhausen, Germany. All rights reserved.60`

9 pages

Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

498333

Notice: fwrite(): send of 196 bytes failed with errno=104 Connection reset by peer in /home/readbag.com/web/sphinxapi.php on line 531