1 / 39

Richard Baldy College of Agriculture

This presentation demonstrates "One-Click ANOVA" with a Latin-square design experiment, aiming to develop data analysis software for agriculture undergraduates to use in college and their post-college careers. The background, features of the industry, and faculty wishes are discussed, along with the limitations of Excel and how to overcome them.

jraymond
Download Presentation

Richard Baldy College of Agriculture

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. Richard Baldy College of Agriculture One-Click Anovas – Analysis of Variance with Microsoft Excel

  2. Overview of Presentation • Demonstration of “One-Click ANOVA” with an experiment set out in a Latin-square design. • Goal of project: develop data analysis software agriculture undergraduates would use in college in their post college careers • Why the goal? • Software creation

  3. Demonstration of “One-click Anova” Latin square randomization Latin-square design with 1 experimental factor

  4. Background for Developing Data Analysis Software Agriculture Undergraduates Would Use in College and After Graduation • Snapshot of California’s agriculture • Industry input into curriculum development • Our students

  5. Features of the Industry Sophisticated producers of 350 different crops and commodities in the nation’s most populous state

  6. Features of the industry continued • Public demands fewer chemical inputs • Yet, public expects industry to do the research • Industry economically powerful. Has the money • Public cannot support research of 350 commodities • Research needs local ecosystem focus to advance goal of ecologically sound agricultural production • Much on-farm research yields results once/yr • Easy to forget involved data analysis procedures

  7. Characteristics of our students Most will not attend graduate school

  8. They will enter industry. Some will teach high school agriculture

  9. Industry Input • Continue to give hands-on experience • Integrate curriculum around ecosystem concepts • Teach problem solving: • Working in emotionally “charged” settings • Leadership • Experimentation including data analysis –

  10. Experimentation, Data Analysis Course “Dick, you are a plant physiologist, develop and teach this course.” Expectations: • Undergraduates experiment and analyze data • They report research via scientific papers, posters, web pages and seminars • And continue as farmer-researchers, consultant-researchers, high school teacher-researchers

  11. Faculty Wish List • Completely randomized design • Randomized complete block design • Latin-square design • Split-plot design • Ancova • Simple and multiple regression • Analysis of count data

  12. Why Excel? • Students familiar with Excel. Therefore, teach data analysis, not a program –saves time • Students’ computers come with Excel – saves $ • Graduates use Excel for other purposes, not just data analysis • Specific experimental design templates friendlier than general purpose programs e.g., SYSTAT • OK for regression

  13. Why Not SYSTAT? • Expensive. Cheaper student version lacks required capability such as split-plot • My experience. Used daily use for weeks. Left it for 3 months. Had to relearn • Number codes for treatments are confusing • For split-plot have to recalculate Anova • Remember ag research data analyzed once/yr

  14. Excel’s Limits As an Anova Platform • “Out of the box” Anova procedures handle few designs; Do not handle missing data • No mean separation tests • No orthogonal contrasts • No automatic charting of treatment means

  15. Text book formulas Overcoming Excel’s Limitations Such formulas are not for a world where experimental cows die – become missing data. No residuals for testing normality, equal variance

  16. Instead Use Method That Gives Residuals For missing data, use iteration to find values that gives residual total = zero

  17. The Right Model • Example: randomized block design, single experimental factor. • Need to solve for three sums of squares: Error Block Treatment

  18. Model for Error Term • Treatment Mean + Block Mean – Grand Mean • Subtract the above estimate from datum to obtain residual • Square residuals • Sum of squared residuals = Error SS

  19. Error SS confounded with block SS From this sum of squares subtract the error term’s sum of squares. Block SS Error SS Treatment SS Treatment SS Model for Block Term • Datum - treatment mean = residual • Square and sum residuals = confounded error and block SS

  20. Model for Treatment Term Error confounded with treatment SS From this sum of squares subtract the error term’s sum of squares. Error SS Treatment SS Block SS Block SS • Datum – block means = residual • Square and sum residuals = confounded error and treatment SS

  21. Circular argument – need careful control of calculation order to avoid crashes Finding Correct Substitute Data • Pivot table gives means to be used in estimates. • Set substitute datum to some value, e.g., 0 • Substitute datum – estimate = residual • New substitute datum = former substitute datum – residual • Refresh pivot table, obtain new means for estimates

  22. Let’s see how a pivot table summarizes these data

  23. These are just data in this pivot table and are not used in computing estimates. If this were a Factor A x Factor B summary, these numbers would also be means and used in estimates

  24. Looked up in pivot table Residual = Response-Estimate. Thus, 0.0 – 44 = -44 Response = Response-Residual. Thus, New response = 0- (-44) = 44 calculate

  25. refresh

  26. calculate

  27. How to handle different sized data sets • Have pivot table summarize 65,000+ rows. • Simple to program • Takes 5-10 minutes for analysis. Rodney’s autofill code + ASSUME page tip on Offset function  cut run times 70 – 90%

  28. Neville’s time trimming suggestion • Refreshing pivot tables for each iteration = 1-2 minutes/analysis • Use DAVERAGE function

  29. DAVERAGE(DataRange, ResponseColumn, Criteria for selecting responses to average) INDIRECT(HC1))

  30. Further Topics • Experiment planning • Formulate additional, orthogonal hypotheses • Estimate number of replicates • Additional work

  31. Experiment planning: Formulate additional hypotheses. Test with single degree of freedom orthogonal contrasts

  32. An Example of Estimating Number of Replicates. Example Will Be for Randomized Complete Block Design. # reps RBD 1 experimental factor

  33. Additional Work • Simplify mean separation tests for factorial designs • Example using split-plot design Split-plot design with blocks

  34. Additional Work (Continued) • Replace trial and error method to develop models • Open development to others • Share programs

More Related