CImap: Computation of simultaneous credible intervals.

View source: R/CImap.R

CImapR Documentation

Computation of simultaneous credible intervals.

Description

Simultaneous credible intervals for all differences of smooths at neighboring scales z_{i} are computed.

Usage

CImap(smoothVec, mm, nn, prob = 0.95)

Arguments

smoothVec

Differences of smooths at neighboring scales.

mm

Number of rows of the original input object.

nn

Number of columns of the original input object.

prob

Credibility level for the posterior credibility analysis. By default prob = 0.95.

Details

CImap is an internal function of mrbsizeRgrid and is usually not used independently. The output can be analyzed with the plotting function plot.CImapGrid.

Value

An array with simultaneous credible intervals VmapCI and the dimensions of the original input object, mm and nn.

Examples

# Artificial sample data: 10 observations (5-by-2 object), 10 samples
set.seed(987)
sampleData  <- matrix(stats::rnorm(100), nrow = 10)
sampleData [4:6, ] <- sampleData [4:6, ] + 5

# Calculation of the simultaneous credible intervals
CImap(smoothVec = sampleData , mm = 5, nn = 2, prob = 0.95)


mrbsizeR documentation built on May 29, 2024, 5:45 a.m.