constrain | R Documentation |
constrain
applies the gaussian conditioning theorem to a prior
distribution for several external forcings (natural, anthropogenic or both)
given observations (see equations 12 and 13 in Supplementary Material of
Qasmi and Ribes, 2021).
constrain( S_mean, Sigma_mod, Xo, Sigma_obs, Nres, centering_CX = T, ref_CX = NULL )
S_mean |
a vector accounting for the multi-model mean. |
Xo |
a vector or a matrix. If a vector, |
Sigma_obs |
a sum of a matrix sampling observed internal variability
(tipically returned by |
Nres |
the whished number of realisations in the posterior gaussian sample |
centering_CX |
a logical value indicating whether the constrained time
series must be in anomalies relative to a given period
(see |
ref_CX |
a vector containing the years corresponding to the reference
period if |
S_mod |
a covariance matrix accounting for model uncertainty. |
a list of two lists containing the parameters of the unconstrained
(prior) and constrained (posterior) gaussian distributions for the
responses to the forcings in X_fit
. The first (second) list named
uncons
(cons
) contains two other lists, namely mean
and var
. mean
is a concatenation of time series
corresponding to the mean of the distribution for the different forcings.
The name of each element follows the pattern: year_forcing
, eg
1850_nat
for the mean natural response in 1850. var
is the
covariance matrix associated with mu
, sampling the model
uncertainty.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.