First, summarized means of raw data with 95% confidence intervals derived from the standard deviation, sample size, and degrees-of-freedom specific to each group are shown. There are at least two simple ways to visualize results from a one-way ANOVA. The code below fits a one-way ANOVA model to examine if mean weight differs by species. Mirex $ year 0.2, 1, 0 ) FSA :: peek ( Mirex, n = 10 ) # examine a portion of the data frame # year weight mirex species gt2 This new variable is used to demonstrate a logistic regression. The year variable is converted to a factor below for modeling purposes and a new variable is created that indicates if the mirex concentration was greater that 0.2 or not. ![]() Most examples below use the Mirex data set from FSA, which contains the concentration of mirex in the tissue and the body weight of two species of salmon ( chinook and coho) captured in six years. library ( tidyverse ) # for dplyr and ggplot2 library ( FSA ) # fitPlot() code may not run after >v0.9.0 library ( emmeans ) The examples below require the following additional packages. The basic plots produced by fitPlot() are recreated here using ggplot2 to provide a resource to help users that relied on fitPlot() transition to ggplot2. We now feel that students are better served by learning how to create these visualizations using methods provided by ggplot2, which require more code, but are more modern, flexible, and transparent. fitPlot() was originally designed for students to quickly visualize the results of one- and two-way ANOVAs and simple, indicator variable, and logistic regressions. ![]() ![]() We are taking this action to make FSA more focused on fisheries applications and to eliminate “black box” functions. It will likely be removed at the end of the year 2001. We are deprecating fitPlot() from the next version of FSA (v0.9.0).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |