x_fit | R Documentation |
x_fit
fits a Generalized Additive Model (GAM, see equation 7 in Qasmi
and Ribes, 2021) to each climate model ensemble mean to estimate the natural
and anthropogenic responses. For each response, an ensemble of realisations
is returned accounting for uncertainty related to internal variability.
x_fit(Xd, Enat, x_df, Sigma = NULL, Nres = NULL, ant = T)
Xd |
a 2-D array of dimension |
Enat |
a 2-D array of dimension |
x_df |
the number of degrees of freedom for the smoothing by splines |
Sigma |
the optional covariance matrix accounting for uncertainty in internal variability |
Nres |
the number of realisations in the gaussian sample of
|
ant |
a logical value indicating whether the anthropogenic response should be returned |
a 3-D array of dimension
[length(year), length(forcing), length(model)]
(or 4-D if
Sigma
is provided), containing the response to several forcings.
forcing
is a character vector containing the types of external
forcing: nat
for natural, all
for all forcings, ant
for anthropogenic (if flagged at the function call). A best-estimate is
provided with Nres
realisations sampling uncertainty in each model
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.