Description Usage Arguments Details Author(s) Examples
View source: R/print.HydePosterior.R
Prints a brief description of a HydeSim object.
1 2 |
x |
a |
... |
additional arguments to be passed to print methods. Currently none in use. |
Prints the number of posterior distributions, chains, and iterations, as well as the observed values.
Jarrod Dalton and Benjamin Nutter
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | data(PE, package="HydeNet")
Net <- HydeNetwork(~ wells +
pe | wells +
d.dimer | pregnant*pe +
angio | pe +
treat | d.dimer*angio +
death | pe*treat,
data = PE)
Net <- setDecisionNodes(Net, treat)
compiledNet <- compileJagsModel(Net, n.chains=5)
#* Generate the posterior distribution for the model (but not the
#* decision model)
Posterior <- HydeSim(compiledNet,
variable.names = c("d.dimer", "death"),
n.iter = 1000)
Posterior
#* Generate the posterior for the decision model
Decision <- compileDecisionModel(Net, n.chains=5)
Posterior_decision <- HydeSim(Decision,
variable.names = c("d.dimer", "death"),
n.iter = 1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.