bri.density: Density estimation using INLA

View source: R/XW.R

bri.densityR Documentation

Density estimation using INLA

Description

Density estimation using INLA

Usage

bri.density(x, m = 101, from, to, cut = 0.1, diagonal = 0.001,
  constr = T, ...)

Arguments

x

the data from which the estimate is to be computed.

m

the number of equally spaced points at which the density is to be estimated.

from, to

the left and right-most points of the grid at which the density is to be estimated.

cut

by default, the values of from and to are cut * diff(range(x)) beyond the extremes of the data.

diagonal

An extra constant added to the diagonal of the precision matrix in INLA.

constr

A boolean variable indicating whater to set a sum to 0 constraint on the term.

...

Value

a list containing the following components: x - the n coordinates of the points where the density is estimated; y - the estimated density values; y.lower - the estimated 2.5 percentile of density; y.lower - the estimated 97.5 percentile of density.


julianfaraway/brinla documentation built on April 6, 2023, 2:33 p.m.