inla.climate | R Documentation |
Fits forcing data to a given temperature dataset using INLA. The undocumented forcing variables not included in forcing
are collectively assumed a stochastic fGn process. Also uses Monte Carlo simulations to obtain Bayesian inference about the transient climate response.
inla.climate(data, forcing, Qco2 = NULL,compute.mu=NULL, stepLength = 0.01, restart.inla = FALSE, m = 4, model = "fgn", formula=NULL, print.progress = FALSE, inla.options = list(), tcr.options = list(), mu.options = list(), ar1.options = list())
data |
Global mean surface temperature. Must be a numeric vector (for now). |
forcing |
The documented forcing data as a sum of all contributive forcing variables. Must be a numeric vector. |
Qco2 |
Qco2 The slope of the forcing when assuming a CO2 doubling in the future. Used for computing the transient climate response. Qco2 = NULL will skip the transient climate response sampling procedure. |
compute.mu |
Decides if and how the |
stepLength |
Numerical value which sets the steplength for the numerical scheme within INLA. A poor convergence can sometimes be improved by adjusting this. |
restart.inla |
Boolean variable indicating whether INLA should restart at the solution found from the first convergence of the Newton-Rhapson algorithm. This can sometimes improve convergence. |
m |
m The number of AR(1) processes used in the fGn approximation. I recommend having at least four (up to six, depending on |
model |
The model used to describe stochastic forcing. For long memory responses the fractional Gaussian noise ( |
formula |
The formula for the additive predictor. If |
print.progress |
Prints progression if |
inla.options |
A list of options for the |
tcr.options |
A list of options for the transient climate response sampling procedure. The following options can be set:
|
mu.options |
A list of options for the forcing response sampling procedure. The following options can be set:
|
ar1.options |
A list of options for the AR(1) weights and parameter evaluation. The following options can be set:
|
If length(data)>length(forcing)
or data
contains NA
values the missing values will be predicted using inla. For return value results
, a summary can be displayed using summary.inla.climate(results)
.
|
An object of class "inla" returned by the |
|
A list containing the marginal posterior distribution, its mean, standard deviation and the 0.025, 0.5 and 0.975 quantiles of each hyperparameters. |
|
This list contains the marginal posterior mean, standard deviation and the 0.025, 0.5 and 0.975 quantiles of the latent Gaussian variables fitted to the data and the underlying AR(1) components. Also includes predictions if there are any. |
|
Time spent for convergence. |
|
A list containing the mean, standard deviation and 0.025, 0.5 and 0.975 quantiles obtained from the transient climate response simulation procedure. |
|
A list containing the call of the |
|
The log marginal-likelihood of the fit obtained by INLA. |
|
The Deviance Information Criterion (DIC) for the fit, obtained by INLA. |
Eirik Myrvoll-Nilsen eirik.myrvoll-nilsen@uit.no
inla
,inla.climate.mu
if(require("INLA",quietly=TRUE)){ data(GISS_E2_R) result.climate <- inla.climate(data=GISS_E2_R$Temperature,forcing=GISS_E2_R$Forcing) summary(result.climate) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.