View source: R/predictive_checks_dependence.R
| plot.dyadMLM_partner_check | R Documentation |
Draws the comparison plots without repeating simulations.
## S3 method for class 'dyadMLM_partner_check'
plot(x, ask = NULL, panels = TRUE, ...)
x |
A |
ask |
Whether to pause between figures on an interactive device.
|
panels |
If |
... |
Additional graphical arguments passed to |
See check_partner_dependence() for interpretation, panel layouts, and
technical details.
Invisibly, x.
example_data <- prepare_dyad_data(
dyads_cross[dyads_cross$coupleID <= 40, ],
dyad = coupleID,
member = personID,
model_types = "none",
seed = 123
)
model <- glmmTMB::glmmTMB(
closeness ~ 1 +
us(1 | coupleID) +
us(0 + .member_contrast_arbitrary | coupleID),
dispformula = ~ 0,
data = example_data
)
simulations <- simulate_dyad_responses(
model,
nsim = 50,
seed = 123
)
check <- check_partner_dependence(
simulations,
dyad = coupleID,
role = gender,
data = example_data,
plot = FALSE
)
plot(check, ask = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.