CreateInputs {BCEA}R Documentation

CreateInputs

Description

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)

Usage

CreateInputs(x, print.lincom = TRUE)

Arguments

x

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).

print.lincom

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).

Value

mat

A data.frame contaning all the simulations for all the monitored parameters

parameters

A character vectors listing the names of all the monitored parameters

Author(s)

Gianluca Baio and Mark Strong

See Also

bcea, evppi


[Package BCEA version 2.3-1.1 Index]