class: center, middle, inverse, title-slide # Western Bean Cutworm Flight Pattern ## Structural Equation Modeling (EDSP 971) ### Emily Robinson ### Katharine Swoboda Bhattarai ### May 5, 2020 --- class:primary ## Outline - Motivation - Ridgeline Plot - Spaghetti Plot - Latent Growth Model - Path Diagram - Year to Year Change - Results & Conclusions --- class:primary ## Motivation .center[ <img class="mw" src="images/lifecycle.png" width="100%" alt="moth flight ggridge plot"/> ] .bottom[ <font size="3">Image Source: Pioneer. (2019, May 9). Western Bean Cutworm. Retrieved from https://www.pioneer.com/us/agronomy/western_bean_cutworm_cropfocus.html</font> ] --- class:primary ## Data Visualization .center[ <img class="mw" src="images/flightPatternPercent.png" width="100%" alt="moth flight ggridge plot"/> ] --- class:primary ## Data - Site (Aurora, Clay Center, Concord, North Platte) - Year (1980 - 2020) - DOTYfirst - DOTYlast (*Time Component*) - Covariates - Total Moths - Peak Moths - Peak/Total Moths Ratio - Average Temperature (Summer) - Total Precipitation (Summer) --- class:primary ## Spaghetti Plot .center[ <img class="mw" src="images/spaghettiPlot.png" width="100%" alt="moth flight spaghetti plot"/> ] --- class:primary ## Latent Growth Model ```r lgcMod <- 'Start =~ 1*DOTYfirst + 1*DOTY25pct + 1*DOTY50pct + 1*DOTY75pct + 1*DOTYlast Length =~ 0*DOTYfirst + DOTY25pct + DOTY50pct + DOTY75pct + 1*DOTYlast DOTYfirst ~~ c(rA, rCC, rC, rNP)*DOTYfirst DOTY25pct ~~ c(rA, rCC, rC, rNP)*DOTY25pct DOTY50pct ~~ c(rA, rCC, rC, rNP)*DOTY50pct DOTY75pct ~~ c(rA, rCC, rC, rNP)*DOTY75pct DOTYlast ~~ c(rA, rCC, rC, rNP)*DOTYlast DOTYfirst ~ 0*1; DOTY25pct ~ 0*1; DOTY50pct ~ 0*1; DOTY75pct ~ 0*1; DOTYlast ~ 0*1 Start ~ c(iiA, iiCC, iiC, iiNP)*1 Length ~ c(isA, isCC, isC, isNP)*1 Start ~~ 0*Length Start ~ avgTemp + totalPrecipitation + totalMoths + peakMoths + peak_totalMoths Length ~ avgTemp + totalPrecipitation + totalMoths + peakMoths + peak_totalMoths ' ``` --- class:primary ## Latent Growth Fit 😐 ```r lgcFit <- cfa(lgcMod, data = wbcDat_LGC, std.lv = F, group = "Site") ``` <table> <thead> <tr> <th style="text-align:right;"> chisq </th> <th style="text-align:right;"> df </th> <th style="text-align:right;"> pvalue </th> <th style="text-align:right;"> cfi </th> <th style="text-align:right;"> rmsea </th> <th style="text-align:right;"> srmr </th> </tr> </thead> <tbody> <tr> <td style="text-align:right;"> 501.888 </td> <td style="text-align:right;"> 108 </td> <td style="text-align:right;"> 0 </td> <td style="text-align:right;"> 0.751 </td> <td style="text-align:right;"> 0.38 </td> <td style="text-align:right;"> 0.142 </td> </tr> </tbody> </table> --- class:primary ## Final Path Diagram .center[ <img class="mw" src="images/mothflightPathDiagram.png" width="100%" alt="Path Diagram plot"/> ] --- class:primary ## Results <table> <caption>Latent Means</caption> <thead> <tr> <th style="text-align:left;"> Group </th> <th style="text-align:left;"> LV </th> <th style="text-align:right;"> Est </th> <th style="text-align:right;"> SE </th> <th style="text-align:right;"> Z </th> <th style="text-align:right;"> Std. Est </th> <th style="text-align:left;"> Sig </th> </tr> </thead> <tbody> <tr> <td style="text-align:left;"> Aurora </td> <td style="text-align:left;"> Start </td> <td style="text-align:right;"> 162.48 </td> <td style="text-align:right;"> 98.57 </td> <td style="text-align:right;"> 1.65 </td> <td style="text-align:right;"> 19.91 </td> <td style="text-align:left;"> </td> </tr> <tr> <td style="text-align:left;"> ClayCenter </td> <td style="text-align:left;"> Start </td> <td style="text-align:right;"> 213.01 </td> <td style="text-align:right;"> 80.16 </td> <td style="text-align:right;"> 2.66 </td> <td style="text-align:right;"> 25.93 </td> <td style="text-align:left;"> ** </td> </tr> <tr> <td style="text-align:left;"> Concord </td> <td style="text-align:left;"> Start </td> <td style="text-align:right;"> 344.16 </td> <td style="text-align:right;"> 53.77 </td> <td style="text-align:right;"> 6.40 </td> <td style="text-align:right;"> 37.60 </td> <td style="text-align:left;"> *** </td> </tr> <tr> <td style="text-align:left;"> NorthPlatte </td> <td style="text-align:left;"> Start </td> <td style="text-align:right;"> 235.68 </td> <td style="text-align:right;"> 58.39 </td> <td style="text-align:right;"> 4.04 </td> <td style="text-align:right;"> 37.29 </td> <td style="text-align:left;"> *** </td> </tr> <tr> <td style="text-align:left;"> Aurora </td> <td style="text-align:left;"> Length </td> <td style="text-align:right;"> -133.61 </td> <td style="text-align:right;"> 98.72 </td> <td style="text-align:right;"> -1.35 </td> <td style="text-align:right;"> -12.17 </td> <td style="text-align:left;"> </td> </tr> <tr> <td style="text-align:left;"> ClayCenter </td> <td style="text-align:left;"> Length </td> <td style="text-align:right;"> 148.23 </td> <td style="text-align:right;"> 81.19 </td> <td style="text-align:right;"> 1.83 </td> <td style="text-align:right;"> 16.87 </td> <td style="text-align:left;"> </td> </tr> <tr> <td style="text-align:left;"> Concord </td> <td style="text-align:left;"> Length </td> <td style="text-align:right;"> 12.59 </td> <td style="text-align:right;"> 71.25 </td> <td style="text-align:right;"> 0.18 </td> <td style="text-align:right;"> 1.30 </td> <td style="text-align:left;"> </td> </tr> <tr> <td style="text-align:left;"> NorthPlatte </td> <td style="text-align:left;"> Length </td> <td style="text-align:right;"> 47.06 </td> <td style="text-align:right;"> 58.79 </td> <td style="text-align:right;"> 0.80 </td> <td style="text-align:right;"> 7.46 </td> <td style="text-align:left;"> </td> </tr> </tbody> </table> --- class:primary ## Results <table> <caption>Latent Variances</caption> <thead> <tr> <th style="text-align:left;"> Group </th> <th style="text-align:left;"> LV </th> <th style="text-align:right;"> Est </th> <th style="text-align:right;"> SE </th> <th style="text-align:right;"> Z </th> <th style="text-align:right;"> Std. Est </th> <th style="text-align:left;"> Sig </th> </tr> </thead> <tbody> <tr> <td style="text-align:left;"> Aurora </td> <td style="text-align:left;"> Start </td> <td style="text-align:right;"> 28.24 </td> <td style="text-align:right;"> 11.88 </td> <td style="text-align:right;"> 2.38 </td> <td style="text-align:right;"> 0.42 </td> <td style="text-align:left;"> * </td> </tr> <tr> <td style="text-align:left;"> ClayCenter </td> <td style="text-align:left;"> Start </td> <td style="text-align:right;"> 34.79 </td> <td style="text-align:right;"> 11.47 </td> <td style="text-align:right;"> 3.03 </td> <td style="text-align:right;"> 0.52 </td> <td style="text-align:left;"> ** </td> </tr> <tr> <td style="text-align:left;"> Concord </td> <td style="text-align:left;"> Start </td> <td style="text-align:right;"> 32.96 </td> <td style="text-align:right;"> 11.08 </td> <td style="text-align:right;"> 2.97 </td> <td style="text-align:right;"> 0.39 </td> <td style="text-align:left;"> ** </td> </tr> <tr> <td style="text-align:left;"> NorthPlatte </td> <td style="text-align:left;"> Start </td> <td style="text-align:right;"> 28.71 </td> <td style="text-align:right;"> 8.20 </td> <td style="text-align:right;"> 3.50 </td> <td style="text-align:right;"> 0.72 </td> <td style="text-align:left;"> *** </td> </tr> <tr> <td style="text-align:left;"> Aurora </td> <td style="text-align:left;"> Length </td> <td style="text-align:right;"> 18.57 </td> <td style="text-align:right;"> 12.17 </td> <td style="text-align:right;"> 1.53 </td> <td style="text-align:right;"> 0.15 </td> <td style="text-align:left;"> </td> </tr> <tr> <td style="text-align:left;"> ClayCenter </td> <td style="text-align:left;"> Length </td> <td style="text-align:right;"> 22.32 </td> <td style="text-align:right;"> 12.06 </td> <td style="text-align:right;"> 1.85 </td> <td style="text-align:right;"> 0.29 </td> <td style="text-align:left;"> </td> </tr> <tr> <td style="text-align:left;"> Concord </td> <td style="text-align:left;"> Length </td> <td style="text-align:right;"> 39.14 </td> <td style="text-align:right;"> 19.82 </td> <td style="text-align:right;"> 1.98 </td> <td style="text-align:right;"> 0.42 </td> <td style="text-align:left;"> * </td> </tr> <tr> <td style="text-align:left;"> NorthPlatte </td> <td style="text-align:left;"> Length </td> <td style="text-align:right;"> 15.25 </td> <td style="text-align:right;"> 8.60 </td> <td style="text-align:right;"> 1.77 </td> <td style="text-align:right;"> 0.38 </td> <td style="text-align:left;"> </td> </tr> </tbody> </table> --- class:primary ## Year to Year Change .center[ <img class="mw" src="images/year-over-year-change.png" width="100%" alt="Yearly Changes"/> ] --- class:primary ## Conclusions - The flight does not follow a linear relationship, most of the moths are captured in the middle of the flight with a few stragglers at the beginning and end. - Based on the latent means: - Concord and North Platte tend to have later start dates. - Aurora has a shorter flight and Clay Center tends to have a longer flight. - Based on the latent variances: - North Platte tends to have a more variable start date. - The total moths for that flight are negatively associated with the start date and positively associated to the length of the flight. - The peak moths are positively associated with the start date and for some locations, negatively associated with the length. - According to farmers, the flight in North Platte has been lasting later in the season, based on the time series plot, we can see that the start date has been later and the length of the flight has been increasing over the most recent years. --- class:primary ## References & Acknowledgements - Da Luz, P. M. C., Swoboda Bhattarai, K. A., Montezano, D. G., Hunt, T. E., Write, R. J., & Peterson, J. A. (n.d.). - Pioneer. (2019, May 9). Western Bean Cutworm. Retrieved from https://www.pioneer.com/us/agronomy/western_bean_cutworm_cropfocus.html - Scouting and Treating Western Bean Cutworm. (2019, July 22). Retrieved from https://cropwatch.unl.edu/scouting-and-treating-western-bean-cutworm - Western Bean Cutworm. (n.d.). Retrieved from https://cropwatch.unl.edu/tags/western-bean-cutworm - Thank you to all of the people involved in collecting data in different locations over a period of more than thirty years. --- class: inverse ## Questions?