Function to calculate the posterior distribution of the parameters used in the drawdown calculations with analytical models.

posterior(par, ptest, model, prior.pdf, prior.parameters)

Arguments

par

A numeric vector with the values of the drawdown model parameters.

ptest

A pumping_test object.

model

A character string specifying the model used in the parameter estimation.

prior.pdf

A character vector with the names of the probability density functions for each parameters. Currently only 'unif' and 'norm' are supported.

prior.parameters

A matrix with the parameters of the probability density functions. If the pdf is 'unif' then the min and max must be specified, whereas in the case of a normal distribution the mean and standard deviation.

Value

A numeric value with the sum of the logarithms of the posterior distributions

See also

Other amcmc_auxiliary_function functions: prior, proposalfunction_cov, proposalfunction, run_adap_metropolis_MCMC