Learn R Programming

⚠️There's a newer version (0.2.12) of this package.Take me there.

BayesLN (version 0.1.2)

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

755

Version

0.1.2

License

GPL-3

Maintainer

Aldo Gardini

Last Published

February 20th, 2020

Functions in BayesLN (0.1.2)

RatioBesselK

Ratio of Bessel K functions
add_MGF

Addend SMNG moment generating function
add

Addend SMNG density function
SMNGmoments

SMNG Moments and Moment Generating Function
SMNGdistribution

SMNG and logSMNG Distributions
functional_gamma

Target functional to minimize with respect to gamma
inf_sum

Summation SMNG density function
fatigue

Low cycle fatigue data
functional_delta

Target functional to minimize with respect to delta
inf_sum_MGF

Summation SMNG moment generating function
zerfun_log

Function for finding logSMNG quantiles
g_V

Integral of the target functional to minimize
g_V_vec

integral_MGF

Integrand SMNG moment generating function
integral

Integrand SMNG density function
ReadingTime

Reading Times data
momentRecursion

Recursion used for SMNG moments
laminators

Laminators
SMNGZmoment

SMNG moments centered in mu
zerfun

Function for finding SMNG quantiles
GH_MGF

GH Moment Generating Function
LN_hier_existence

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

Bayesian Estimate of the conditional Log-normal Mean
NCBC

Naval Construction Battalion Center data
LN_Mean

Bayesian Estimate of the Log-normal Mean
LN_Quant

Bayesian estimate of the log-normal quantiles
LN_hierarchical

Bayesian estimation of a log - normal hierarchical model
EPA09

Chrysene concentration data
LN_QuantReg

Bayesian estimate of the log-normal conditioned quantiles