Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cauchyerrorpost

Log posterior of median and log scale parameters for Cauchy sampling


Description

Computes the log posterior density of (M,log S) when a sample is taken from a Cauchy density with location M and scale S and a uniform prior distribution is taken on (M, log S)

Usage

cauchyerrorpost(theta,data)

Arguments

theta

vector of parameter values of M and log S

data

vector containing sample of observations

Value

value of the log posterior

Author(s)

Jim Albert

Examples

data=c(108, 51, 7, 43, 52, 54, 53, 49, 21, 48)
theta=c(40,1)
cauchyerrorpost(theta,data)

LearnBayes

Functions for Learning Bayesian Inference

v2.15.1
GPL (>= 2)
Authors
Jim Albert
Initial release
2018-03-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.