Learn R Programming

mrbsizeR

Installation

The preferred way to install mrbsizeR from CRAN is:

install.packages("mrbsizeR")

You can install the mrbsizeR devel version from github with:

# install.packages("devtools")
devtools::install_github("romanflury/mrbsizeR")

Example

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

# Generate samples from multivariate t-distribution
tSamp <- rmvtDCT(object = sampleData, lambda = 0.2, sigma = 6, nu0 = 15,
                  ns = 1000)
 
# mrbsizeRgrid analysis
mrbOut <- mrbsizeRgrid(posteriorFile = tSamp$sample, mm = 10, nn = 10,
                       lambdaSmoother = c(1, 1000), prob = 0.95)

# Posterior mean of the differences of smooths
plot(x = mrbOut$smMean, turn_out = TRUE)

# Credibility analysis using simultaneous credible intervals
plot(x = mrbOut$ciout, turn_out = TRUE) 

Copy Link

Version

Install

install.packages('mrbsizeR')

Monthly Downloads

188

Version

1.3

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Roman Flury

Last Published

February 14th, 2024

Functions in mrbsizeR (1.3)

plot.CImapGrid

Plot of simultaneous credible intervals.
mrbsizeR

mrbsizeR: Scale space multiresolution analysis in R.
rmvtDCT

Sampling from marginal posterior multivariate t-distribution.
tridiag

Generate a tridiagonal matrix.
mrbsizeRgrid

Multiresolution analysis of random signals.
turnmat

Turn matrix 90 degrees counter-clockwise.
CImap

Computation of simultaneous credible intervals.
ifftshift

Inverse FFT shift of a 2d matrix.
fftshift

Swap the quadrants or halves of a 2d matrix.
HPWmap

Computation of pointwise and highest pointwise probabilities.
eigenLaplace

Generate eigenvalues of discrete Laplace matrix.
TaperingPlot

Plot of tapering functions.
dctMatrix

Create a n-by-n discrete cosine transform matrix.
MinLambda

Numerical optimization for finding appropriate smoothing levels.
dftMatrix

Create a n-by-n discrete Fourier transform matrix.
eigenQsphere

Generate eigenvalues of precision matrix Q on the surface of a sphere.
plot.HPWmapGrid

Plotting of pointwise and highest pointwise probabilities.
plot.CImapSphere

Plotting of simultaneous credible intervals on a sphere.
plot.smMeanGrid

Plotting of scale-dependent features.
plot.minLambda

Plot of objective function for finding appropriate smoothing parameters.
plot.HPWmapSphere

Plotting of pointwise and highest pointwise probabilities on a sphere.
plot.smMeanSphere

Plotting of scale-dependent features on a sphere.
mrbsizeRsphere

Multiresolution analysis of random signals for spherical data.