constrained_far: Creates function to co compute the FAR

Description Usage Arguments Value Examples

Description

constrained_far compute the far for wich the non-stationnary components from model fit_o are constrained by the statistical model fit_m. i.e. fit_o must have the same fitted parameters has fit_m with the exception of the intercept parameters.

Usage

1
constrained_far(far_o, far_m, model, xp = 1.6, ci_p = 0.9)

Arguments

far_o

result from a function compute_far

far_m

result from a function compute_far. It should have the same stastical model for y as far_o. the fitted parameters with the exception of the intercepts will constrained the statistical model that will be refitted for far_o.

Value

the far_o object where the the fitted model far_o$mfit has been constrain by the results of far_m

Examples

1
2
3
far_cnrm <- compute_far.default("cnrm", y="eur_tas", x="gbl_tas", time="year")
far_obs <- compute_far.default("obs", y="eur_tas", x="gbl_tas", time="year")
far_cstr <- constrained_far(far_obs, far_cnrm, model="cnrm")

thaos/FARallnat documentation built on May 25, 2019, 8:18 a.m.