Description Usage Arguments Details Value See Also Examples
Allows one to plot the confidence intervals associated with interaction terms. Provides an easy way to look at whether there are any significant interactions, and if so which interactions are important.
1 | intsPlot(out, y = "all", nsims = 500, alpha = 0.05)
|
out |
GGM moderated network output from |
y |
Character string. The name of the outcome variable for which to
create the plot. If |
nsims |
The number of simulations to estimate the posterior distribution of the difference between high and low levels of the confidence interval. |
alpha |
Alpha level that is used to compute confidence intervals. |
The default setting y = "all"
shows all interaction terms associated
with the model. But the user can also home-in on specific variables to see
what interactions might be relevant. When y = "all"
, the axis labels
should be explained. These follow the format of predictor:outcome
. The
title reflects the name of the moderator variable. For instance, if a
variable named "M"
moderates the relationship between "X"
and
"Y"
, where "X"
predicts "Y"
, the title of the plot will
list the variable "M"
as the moderator, and the label (shown on the
y-axis), will read "X:Y"
. When y != "all"
(that is, a specific
value for y
is provided), then the title will still reflect the
moderator, but the labels will simply show which predictor interacts with
that moderator to predict the outcome.
A plot showing the spread of different interactions.
1 2 | fit <- fitNetwork(ggmDat, 'M')
plot(fit, 'ints', y = 'all')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.