Dispatches each type to the model it is valid on. The VPC and shrinkage
views ("vpc", "obs_vs_shrunken", "predicted") use the
null model. The additive-vs-intersectional views ("effect_decomp",
"prediction_deviation") use the
adjusted model, whose fixed effects carry the dimensions' additive part so
the stratum random effect is the pure interaction; with fewer than two dimensions
(no adjusted model) they fall back to the null model. Group types
("group_vpc", "group_components", "group_between_variance",
"group_pcv", "group_additive_share") use the group comparison when
maihda was called with a group.
Arguments
- x
A
maihda_analysisobject frommaihda.- type
One of the model types ("all", "vpc", "obs_vs_shrunken", "predicted", "upset" (the UpSet-style alternative to "predicted"; forwards
quantityvia...), "effect_decomp", "prediction_deviation"), the contextual type ("context_vpc", a stratum-vs-context variance bar; requiresmaihda(context = )), a longitudinal type ("vpc_trajectory", "trajectories", "pcv_trajectory"; requiresdecomposition = "longitudinal"), or a group type ("group_vpc", "group_components", "group_between_variance", "group_pcv", "group_additive_share"). Default "all". For a longitudinal analysis "all" shows the VPC-over-time, the stratum trajectories, and the time-specific PCV.- highlight_interactions
Highlight strata with a credibly non-zero intersectional interaction on the BLUP-based views (see
maihda_interactionsandplot).FALSE(default),TRUE(computed from this analysis's adjusted / crossed-dimensions model), a multiple-testing method such as"BH", or amaihda_interactionsobject. The flags are computed once from the correct (adjusted) model and reused across views.- only_flagged
Show only the highlighted strata on the
"predicted"and"obs_vs_shrunken"views instead of dimming the rest (seeplot).FALSE(default) keeps every stratum;TRUErestricts those views to the highlighted strata (those carrying a credibly non-zero interaction, or – underhighlight_by = "rope"– those classified ROPE-"relevant") and, whenhighlight_interactionsis leftFALSE, turns the highlight on with this analysis's stored diagnostic."effect_decomp"ignores it (it stays highlighted in context).- highlight_by
Which interaction-screen column defines the highlighted strata:
"flag"(default, the zero-centredflaggedcolumn) or"rope"(the equivalencedecisioncolumn, highlighting the strata classified"relevant"). Seeplot."rope"requiresrope(or ahighlight_interactionsobject built with one).- rope
Equivalence region forwarded to
maihda_interactionswhen computing the screen, sohighlight_by = "rope"has adecisioncolumn to read: a single positivedfor the symmetric regionc(-d, d)on the latent (link) scale, orc(lower, upper).NULL(default) adds no equivalence classification.- select
When the
n_stratacap drops strata on the"predicted"(or longitudinal"trajectories") view, which to keep:"order"(default, first n_strata in stratum order) or"deviation"(the n_strata furthest from the reference, both tails). Seeplot.- ...
Additional arguments passed to the underlying plot method.
