pip | R Documentation |
Method for calculating posterior inclusion probabilities (PIPs) for modifiers in HDLM & HDLMM
pip(object, type = 1)
object |
An object of class dlmtree. |
type |
Type=1 indicates single modifier PIPs. Type=2 indicates joint modifier PIPs for two modifiers. |
pip
A vector (type=1) or data.frame (type=2) of PIPs.
# Posterior inclusion probability with HDLM
D <- sim.hdlmm(sim = "B", n = 1000)
fit <- dlmtree(y ~ .,
data = D$dat,
exposure.data = D$exposures,
dlm.type = "linear",
family = "gaussian",
het = TRUE)
pip(fit)
pip(fit, type = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.