Learn R Programming

BayesLN (version 0.2.10)

Bayesian Inference for Log-Normal Data

Description

Bayesian inference under log-normality assumption must be performed very carefully. In fact, under the common priors for the variance, useful quantities in the original data scale (like mean and quantiles) do not have posterior moments that are finite (Fabrizi et al. 2012 ). This package allows to easily carry out a proper Bayesian inferential procedure by fixing a suitable distribution (the generalized inverse Gaussian) as prior for the variance. Functions to estimate several kind of means (unconditional, conditional and conditional under a mixed model) and quantiles (unconditional and conditional) are provided.

Copy Link

Version

Install

install.packages('BayesLN')

Monthly Downloads

324

Version

0.2.10

License

GPL-3

Maintainer

Aldo Gardini

Last Published

December 4th, 2023

Functions in BayesLN (0.2.10)

zerfun_log

Function for finding logSMNG quantiles
laminators

Laminators
inf_sum

Summation SMNG density function
momentRecursion

Recursion used for SMNG moments
SMNGdistribution

SMNG and logSMNG Distributions
SMNGmoments

SMNG Moments and Moment Generating Function
g_V_vec

Vectorization of the function g_V
zerfun

Function for finding SMNG quantiles
inf_sum_MGF

Summation SMNG moment generating function
integral

Integrand SMNG density function
LN_Quant

Bayesian estimate of the log-normal quantiles
LN_hierarchical

Bayesian estimation of a log - normal hierarchical model
LN_Mean

Bayesian Estimate of the Log-normal Mean
LN_QuantReg

Bayesian estimate of the log-normal conditioned quantiles
add

Addend SMNG density function
LN_hier_existence

Numerical evaluation of the log-normal conditioned means posterior moments
GH_MGF

GH Moment Generating Function
LN_MeanReg

Bayesian Estimate of the conditional Log-normal Mean
fatigue

Low cycle fatigue data
EPA09

Chrysene concentration data
NCBC

Naval Construction Battalion Center data
functional_gamma

Target functional to minimize with respect to gamma
functional_delta

Target functional to minimize with respect to delta
RatioBesselK

Ratio of Bessel K functions
add_MGF

Addend SMNG moment generating function
g_V

Integral of the target functional to minimize
ReadingTime

Reading Times data
SMNGZmoment

SMNG moments centered in mu
integral_MGF

Integrand SMNG moment generating function