sd_density {BayesGP} | R Documentation |
Obtain the posterior density of a SD parameter in the fitted model
Description
Obtain the posterior density of a SD parameter in the fitted model
Usage
sd_density(
object,
component = NULL,
h = NULL,
theta_logprior = NULL,
MCMC_samps_only = FALSE
)
Arguments
object |
The fitted object from the function 'model_fit'. |
component |
The component of the SD parameter that you want to show. By default this is 'NULL', indicating the family.sd is of interest. |
h |
For PSD, the unit of predictive step to consider, by default is set to 'NULL', indicating the result is using the same 'h' as in the model fitting. |
theta_logprior |
The log prior function used on the selected SD parameter. By default is 'NULL', and the current Exponential prior will be used. |
MCMC_samps_only |
For model fitted with MCMC, whether only the posterior samples are needed. |
Value
A data.frame that contains the posterior and prior densities of the SD parameter. The SD parameter will be converted into PSD if applicable.
[Package BayesGP version 0.1.3 Index]