BioSS/UKCEH
BioSS
\[ \texttt{Fledg}_t = \exp\left(\beta_0 + \texttt{AON}_t + s(t)\right) \]
where \(\texttt{Fledg}_t \sim \text{Tweedie}(\phi, p)\).
Langton, R., Boulcott, P. and Wright P.J. (2021) A verified distribution model for the lesser sandeel Ammodytes marinus. Marine Ecology Progress Series.
eel1 + eel2 + ...
\[ \sum_j w_j x_j \]
\[ \sum_j w(z_j) x(z_j) \]
\[ \sum_j w(z_j) x(z_j) \]
\(w(z_j)\) is a smooth we estimate
\(x(z_j)\) is the sandeel density
\(z_j\) are the distances
\(\Rightarrow\) weighted average of sandeel density over the distances
\[ \texttt{Fledg}_t = \exp\left( \beta_0 + \texttt{AON}_t + s(t) + \sum_j w(d_j) e(d_j) \right) \]
“estimate a smooth (the weighting) of lagm
(distances) and multiply by the sandeel density at that distance”
lagm
and sandeels_fi
are nrow(kit_sub)
\(\times\) (number of distances) matrices [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
[1,] 10 20 30 40 50 60 70 80
[2,] 10 20 30 40 50 60 70 80
[3,] 10 20 30 40 50 60 70 80
[4,] 10 20 30 40 50 60 70 80
[5,] 10 20 30 40 50 60 70 80
[6,] 10 20 30 40 50 60 70 80
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
[1,] 0.5881714 0.4039171 0.21924 1.180914 1.648092 1.119965 1.01492 1.094924
[2,] 0.5881714 0.4039171 0.21924 1.180914 1.648092 1.119965 1.01492 1.094924
[3,] 0.5881714 0.4039171 0.21924 1.180914 1.648092 1.119965 1.01492 1.094924
[4,] 0.5881714 0.4039171 0.21924 1.180914 1.648092 1.119965 1.01492 1.094924
[5,] 0.5881714 0.4039171 0.21924 1.180914 1.648092 1.119965 1.01492 1.094924
[6,] 0.5881714 0.4039171 0.21924 1.180914 1.648092 1.119965 1.01492 1.094924
We can use signal regression (aka scalar-on-function regression) to make weighted averages of “functional” data.
We assume that sandeel density is a function of distance from colony.
We estimate the weighting needed during fitting.
\[\begin{equation} \texttt{Fledg}_{ti} = \exp\left( \beta_0 + \texttt{AON}_{ti} + s(t) +\\ \qquad \sum_j w(d_j) e_i(d_j) + \texttt{Site}_i \right) \end{equation}\]
\[ \texttt{Fledg}_t = \exp\left(\beta_0 + \texttt{AON}_t + s(t) + s(\texttt{SST}_t)\right) \]
\[ \sum_j \sum_k w(d_j, t_k, \texttt{Site}) \texttt{SST}(d_j, t_k, \texttt{Site}) \]
\[ s(X1) = \sum_k \beta_k b_k(X1) \]
\[ s(X1) = \sum_k \beta_k b_k(X1) \]
Built from basis functions \(b_k(X1)\)
With coefficients \(\beta_k\) (“weights”)
We want to let \(s(X1)\) vary with \(X2\)
\[ s(X1) = \sum_k \beta_k b_k(X1) \]
\(\beta_k\) now 1D smooth function of \(X2\)
\[ \beta_k(X2) = \sum_j \alpha_{jk} a_j(X2) \]
\[ s(X1) = \sum_k \beta_k b_k(X1) \]
\[ \beta_k(X2) = \sum_j \alpha_{jk} a_j(X2) \]
\[ f(X1,X2) = \]
\[ \sum_j \sum_k \alpha_{jk} a_j(X2) b_k(X1) \]
Site
bit?Site
is special because it’s a factorSite
te(Dm, Tm, Sitem)
would just be our 3D smooth
Dm
is a distance matrixTm
is a weekly matrixSitem
is a site matrixSSTm
is a matrix of SSTs
by=
just means “premultiply by”