x and values of log-likelihood logy and
log-prior density logp.
fitmarg(x, logy, logp = 0, usenormal = FALSE)x from their log-likelihood
and log-prior. The fitted marginal is re-scaled to integrate one if
necessary. If usenormal=TRUE then the fitted marginal is supposed
to be Normal, which is computed using the posterior mean and standard
deviation of x.
fitmargBMA, fitmargBMA2,mysplinefun