Creates an object containing the matrix with the parameters simulated using
the MCMC procedure (using JAGS, BUGS or Stan) and a vector of parameters
(strings) that can be used to perform the expected value of partial
information analysis. In the process, CreateInputs
also checks for
linear dependency among columns of the PSA samples or columns having
constant values and removes them to only leave the fundamental parameters
(to run VoI analysis). This also deals with simulations stored in a
.csv
or .txt
file (eg as obtained using bootstrapping from a
non-Bayesian model)
CreateInputs(x, print.lincom = TRUE)
A rjags
, bugs
or stanfit
object, containing
the results of a call to either jags
, (under R2jags
), bugs
(under R2WinBUGS
or R2OpenBUGS
), or stan
(under
rstan
).
A TRUE/FALSE indicator. If set to TRUE
(default)
then prints the output of the procedure trying to assess whether there are
some parameters that are a linear combination of others (in which case
they are removed).
A data.frame contaning all the simulations for all the monitored parameters
A character vectors listing the names of all the monitored parameters