calc_pred is a helper function for
plot_model. It calculates for a list of Generalized Additive
(Mixed) Models the predicted IND values as well as the upper and lower
95% confidence intervals based on a list of corresponding
pressure values (observed or a regular spaced sequence).
A list of model objects of class 'gam' or 'gamm'.
A list of vectors with pressure values (observed or an artificial sequence).
The function returns a tibble with one row for each model and three columns:
A list-column with the predicted IND values given the input pressure values.
A list-column with the upper 95% confidence limit of the IND predictions.
A list-column with the lower 95% confidence limit of the IND predictions.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.