View source: R/get.param.timedeppar.R
get.param | R Documentation |
timedeppar
This function extracts an element of the stored Markov chain from an object of type timedeppar
produced by the function infer.timedeppar
and converts it to a format that facilitates
re-evaluation of the posterior, evaluation of the underlying model, and sampling from the Ornstein-Uhlenbeck
process.
In particular, the constant and time-dependent parameters are provided in the same list format as supplied
as param.ini
to the function infer.timedeppar
.
In addition, the parameters of the Ornstein-Uhlenbeck process(es) of the time-dependent parameters are
provided in different formats (see details below under Value
.
get.param(x, ind.sample)
x |
results from the function |
ind.sample |
index of the stored (potentially thinned) Markov chain defining which parameters to reconstruct. Default is to extract the parameters corresponding to the maximum posterior solution. |
list with the following elements:
param
: list of constant and time-dependent model parameters,
param.ou.estim
: vector of estimated process parameters of all time-dependent parameters,
param.ou.fixed
: vector of fixed process parameters of all time-dependent parameters,
param.ou
: matrix of Ornstein-Uhlenbeck parameters for all time-dependent parameters;
columns are mean, sd and gamma of the processes, rows are the time-dependent parameter(s).
logpdf
: corresponding lopdf values (posterior, intermediate densities, and priors),
ind.timedeppar
: indices of param
at which parameters are time-dependent.
ind.sample
: sample index.
ind.chain
: corresponding index of the Markov chain.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.