Description Usage Arguments Value Examples
fit_model
fits the model for a given study id. The function first fits
the model using REML with and without the AR1 auto-regressive term. It then
compares the AIC of these two models. The best model is then refitted using ML
and compared to a null model. All models are fitted using the package
spaMM.
1 2 |
data |
A dataframe containing per each study the time series of relevant variables (i.e. yearly climate values, yearly trait values or yearly selection differentials) to be analyzed. |
formula_full |
A character string indicating the formula for the full model to be fitted. |
formula_null |
A character string indicating the formula for the null model to be fitted. |
resid_formula |
A character string indicating the formula for the residual model to be fitted. |
prior_weights |
A numeric vector of prior weights. |
... |
Additional parameters for the function |
A list containing the best full fitted model and the result of
anova.HLfit
comparing this model and a null model.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.