These data were originally collected as part of a study published in Aquatic Living Resources (Smith et al., 2005). The aim of the study was to investigate the seasonal patterns of investment in somatic and reproductive tissues in the long finned squid Loligo forbesi caught in Scottish waters. Squid were caught monthly from December 1989 - July 1991 (month and year variables). After capture, each squid was given a unique specimen code (specimen variable) and the following variables measured:
Each individual was also assigned a categorical measure of maturity (maturity.stage variable) ranging from 1 to 5 with 1 = immature, 5 = mature.
Some interesting background information on squid morphology can be found here and the following image provides a useful summary of squid anatomy.
## 'data.frame': 519 obs. of 13 variables:
## $ sample.no : int 105128901 105128901 105128901 105128901 105128901 ...
## $ specimen : int 1002 1003 1005 1007 1008 ...
## $ year : int 1989 1989 1989 1989 1989 ...
## $ month : int 12 12 12 12 12 ...
## $ weight : num 152 106 ...
## $ sex : int 2 2 2 2 2 ...
## $ maturity.stage : int 3 1 2 2 3 ...
## $ DML : int 174 153 169 175 169 ...
## $ eviscerate.weight: num 87.5 62.6 79.4 83.1 72.2 ...
## $ dig.weight : num 4.65 3.14 ...
## $ nid.length : num 39.4 24.1 39 41.4 39.8 ...
## $ nid.weight : num 2.46 0.319 ...
## $ ovary.weight : num 1.68 0.103 0.289 0.252 0.86 ...
In this dataset 519 squid were caught and 13 variables were measured for each squid. Details are shown above.
The variables maturity.stage
, month
and
year
were converted from integers to factors in the
dataframe squid
. These recoded variables were named
Fmaturity
, Fmonth
and Fyear
.
Next, let’s take a look at the number of observations across years and months.
1989 | 1990 | 1991 | |
---|---|---|---|
1 | 0 | 3 | 37 |
2 | 0 | 0 | 30 |
3 | 0 | 40 | 29 |
4 | 0 | 10 | 33 |
5 | 0 | 1 | 30 |
6 | 0 | 0 | 14 |
7 | 0 | 42 | 1 |
8 | 0 | 29 | 0 |
9 | 0 | 82 | 0 |
10 | 0 | 19 | 0 |
11 | 0 | 76 | 0 |
12 | 12 | 31 | 0 |
In 1989 data were only collected during December and in 1991 data collection stopped in August. During 1990, no data were collected in either February or June. There are also some months that have very few observations (May 1990 and July 1991 for example) so care must be taken when modelling these data.
Number of observations in each month for each of the squid maturity stages are given in the table below.
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 0 | 0 | 0 | 2 | 0 | 4 | 8 | 0 | 1 | 1 | 1 | 4 |
2 | 1 | 1 | 0 | 1 | 0 | 6 | 22 | 21 | 76 | 17 | 31 | 7 |
3 | 2 | 0 | 0 | 1 | 1 | 0 | 0 | 5 | 5 | 1 | 31 | 11 |
4 | 18 | 8 | 21 | 20 | 6 | 1 | 5 | 3 | 0 | 0 | 10 | 15 |
5 | 19 | 21 | 48 | 19 | 24 | 3 | 8 | 0 | 0 | 0 | 3 | 6 |
Not all maturity stages were observed in all months. Very few squid of maturity stage 1, 2 or 3 were caught in the months January to May whereas maturity stages 4 and 5 were predominantly caught during these months.
Now let’s check for any unusual observations in the variables;
DML
, weight
, nid.length
and
ovary.weight
.
It looks like the variable nid.length
contains an
unusually large value. Actually, this value is
biologically implausible and clearly an error. I went back and checked
my field notebook and sure enough it’s a typo. I was knackered at the
time and accidentally inserted a zero by mistake when transcribing these
data. Doh! This squid was identified as 11 with a
sample number 105128901. This observation was subsequently removed from
the data set.
Let’s take a look at whether DML changes with maturity stage.
DML was lowest for maturity stage 1 with a mean length of 139.14 mm. DML increased until maturity stage 3 (mean 222.35 mm) after which it remained reasonably consistent for maturity stages 4 (mean 238.6 mm) and 5 (mean 233.99 mm).
R version 4.3.2 (2023-10-31)
Platform: x86_64-apple-darwin20 (64-bit)
locale: en_US.UTF-8||en_US.UTF-8||en_US.UTF-8||C||en_US.UTF-8||en_US.UTF-8
attached base packages: stats, graphics, grDevices, utils, datasets, methods and base
other attached packages: pander(v.0.6.5), kableExtra(v.1.4.0), ggplot2(v.3.5.0), htmltools(v.0.5.7), stringr(v.1.5.1), dplyr(v.1.1.4) and knitr(v.1.45)
loaded via a namespace (and not attached): gtable(v.0.3.4), jsonlite(v.1.8.8), compiler(v.4.3.2), highr(v.0.10), Rcpp(v.1.0.12), tidyselect(v.1.2.0), tinytex(v.0.49), xml2(v.1.3.6), jquerylib(v.0.1.4), systemfonts(v.1.0.5), scales(v.1.3.0), yaml(v.2.3.8), fastmap(v.1.1.1), R6(v.2.5.1), labeling(v.0.4.3), generics(v.0.1.3), tibble(v.3.2.1), munsell(v.0.5.0), svglite(v.2.1.3), bslib(v.0.6.1), pillar(v.1.9.0), rlang(v.1.1.3), utf8(v.1.2.4), cachem(v.1.0.8), stringi(v.1.8.3), xfun(v.0.42), sass(v.0.4.8), viridisLite(v.0.4.2), cli(v.3.6.2), withr(v.3.0.0), magrittr(v.2.0.3), formatR(v.1.14), digest(v.0.6.34), grid(v.4.3.2), rstudioapi(v.0.15.0), fontawesome(v.0.5.2), lifecycle(v.1.0.4), vctrs(v.0.6.5), evaluate(v.0.23), glue(v.1.7.0), farver(v.2.1.1), fansi(v.1.0.6), colorspace(v.2.1-0), rmarkdown(v.2.26), tools(v.4.3.2) and pkgconfig(v.2.0.3)