Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extract_property

Extract a summary property from all results of an inla result


Description

Extract a summary property from all results of an inla result

Usage

extract_property(result, property, internal_hyperpar = FALSE)

Arguments

result

an inla result object

property

character; "mean", "sd", "mode", or some other column identifier for inla result $summary.fixed, $summary.random$label, and $summary.hyperpar, or "joint_mode". For "joint_mode", the joint latent mode is extracted, and the joint hyperparameter mode, in the internal scale.

internal_hyperpar

logical; if TRUE, use internal scale for hyperparamter properties. Default is FALSE, except when property is "joint_mode" which forces internal_hyperpar=TRUE.

Value

named list for each estimated fixed effect coefficient, random effect vector, and hyperparameter. The hyperparameter names are standardised with bru_standardise_names()


inlabru

Bayesian Latent Gaussian Modelling using INLA and Extensions

v2.3.1
GPL (>= 2)
Authors
Finn Lindgren [aut, cre, cph] (<https://orcid.org/0000-0002-5833-2011>, Finn Lindgren continued development of the main code), Fabian E. Bachl [aut, cph] (Fabian Bachl wrote the main code), David L. Borchers [ctb, dtc, cph] (David Borchers wrote code for Gorilla data import and sampling, multiplot tool), Daniel Simpson [ctb, cph] (Daniel Simpson wrote the basic LGCP sampling method), Lindesay Scott-Howard [ctb, dtc, cph] (Lindesay Scott-Howard provided MRSea data import code), Seaton Andy [ctb] (Andy Seaton provided testing and bugfixes)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.