10.13 Problems
For questions 1-3, use the Lake Washington plankton data from the chapter. dat
is the data to use.
library(MARSS)
data(lakeWAplankton, package = "MARSS")
<- lakeWAplanktonTrans
all_dat <- 1980
yr_frst <- 1989
yr_last <- all_dat[all_dat[, "Year"] >= yr_frst & all_dat[,
plank_dat "Year"] <= yr_last, ]
<- c("Cryptomonas", "Diatoms", "Greens", "Unicells",
phytoplankton "Other.algae")
<- plank_dat[, phytoplankton]
dat_1980 ## transpose data so time goes across columns
<- t(dat_1980)
dat_1980 ## remove the mean
<- zscore(dat_1980, mean.only = TRUE) dat
Fit other DFA models to the phytoplankton data with varying numbers of latent trends from 1-4 (we fit a 3 latent trend model above). Do not include any covariates in these models. Using
R="diagonal and unequal"
for the observation errors, which of the DFA models has the most support from the data?Plot the model states (latent trends) and loadings as in Section 10.9. Describe the general patterns in the states and the ways the different taxa load onto those trends.
Also plot the the model fits as in Section 10.10. Do they look reasonable? Are there any particular problems or outliers?
How does the best model from Question 1 compare to a DFA model with the same number of latent trends, but with
R="unconstrained"
?Plot the model states (latent trends) and loadings as in Section 10.9. Describe the general patterns in the states and the ways the different taxa load onto those trends.
Also plot the the model fits as in Section 10.10. Do they look reasonable? Are there any particular problems or outliers?
Fit a DFA model that includes temperature as a covariate and 3 trends (as in Section 10.12), but with
R="unconstrained"
? How does this model compare to the model withR="diagonal and unequal"
? How does it compare to the model in Question 2?Plot the model states and loadings as in Section 10.9. Describe the general patterns in the states and the ways the different taxa load onto those trends.
Also plot the the model fits as in Section 10.10. Do they look reasonable? Are there any particular problems or outliers?