cauchyerrorpost {LearnBayes} | R Documentation |
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)
cauchyerrorpost(theta,data)
theta |
matrix of parameter values where each row represents a value of (M, log S) |
data |
vector containing sample of observations |
vector of values of the log posterior where each value corresponds to each row of the parameters in theta
Jim Albert
data=c(108, 51, 7, 43, 52, 54, 53, 49, 21, 48) theta1=array(c(40,0),c(1,2)) theta2=array(c(50,1),c(1,2)) theta=rbind(theta1,theta2) cauchyerrorpost(theta,data)