extract_hyperparameters: Extraction of descriptive statistics for the hyperparameters...

View source: R/extract_hyperparameters.R

extract_hyperparametersR Documentation

Extraction of descriptive statistics for the hyperparameters in INLA

Description

This function takes an INLA object as input and extracts the descriptive statistics (mean and standard deviation) of the hyperparameters.

Usage

extract_hyperparameters(inla.object, dz = 0.75, diff.logdens = 15)

Arguments

inla.object

character string, the name of the INLA object fitted in R-INLA

dz

Step length in the standardized scale used in the construction of the grid, default 0.75.

diff.logdens

The difference of the log.density for the hyperpameters to stop numerical integration using int.strategy='grid'. Default 15.

Details

This function takes an inla object as input, improves the estimates of the posterior marginals for the hyperparameters of the model using the grid integration strategy by inla.hyperpar function, checks whether the hyperparamaters are available and extracts the descriptive statistics (mean and standard deviation) of the hyperparameters.

Value

A matrix of numeric values for all the hyperparameters in rows and means and sds in columns (ncol = 2).

See Also

extract_descriptives_inla


hunansona/ed4bhm documentation built on June 15, 2022, 6:42 p.m.