[R] Maximum a Posteriori (MAP) estimation in R

2012-08-30 Thread bin you
Hi, r-helpers, does anybody know how to get the MAP estimator? I have a dataframe (nrow=10,000, ncol=24) with 24 parameters. It is a sample from MCMC simulation. which function can generate the MAP estimator for each of the 24 parameters. Many thanks in advance, Bin [[alternative HTML

[R] Maximum a Posteriori estimation

2012-08-22 Thread bin you
Hi, I am doing Bayesian Calibration for a model which has 24 parameters using MCMC. I get a sample of 100,000 points from the posterior pdf. Let's say, It is a dataframe named as "BC_output", with 24 parameters (V1,V2,V24) I would like to show the Maximum a Posteriori (MAP)parameter value of