
Standardized Report for Correlation Synthesis and Latent Factors
synthesis_factor_report.RdBuilds a standardized report object with pooled correlations, uncertainty, heterogeneity summaries, latent-factor solution tables, publication-ready tables, plot-ready matrices, reproducibility metadata, and limitations.
Usage
synthesis_factor_report(
mars_object,
factor_method = c("none", "efa", "cfa"),
n_factors = 1L,
cfa_model = NULL,
group_var = NULL,
loading_threshold = 0.3,
synthesis_method = c("model", "average", "weighted"),
synthesis_transform = c("none", "fisher_z"),
missing_corr = c("available", "pairwise", "em"),
attenuation = c("none", "correct"),
reliability = NULL,
reliability_missing = c("error", "skip", "impute_mean", "assume_1"),
missing_sensitivity = FALSE,
attenuation_sensitivity = FALSE,
reliability_scenarios = NULL,
pd_adjust = c("none", "eigen_clip", "nearpd"),
pd_tol = 1e-08,
include_publication_bias = TRUE,
...
)
# S3 method for class 'synthesis_report'
summary(object, ...)
# S3 method for class 'synthesis_report'
print(x, digits = max(3, getOption("digits") - 3), ...)
# S3 method for class 'synthesis_report'
plot(
x,
type = c("pooled_r", "heterogeneity", "residuals", "calibration", "loadings", "path",
"influence", "influence_heatmap", "invariance"),
main = NULL,
main_adj = 0.5,
main_line = NULL,
invariance_legend_position = "bottomleft",
invariance_legend_title = NULL,
path_center_latent = TRUE,
path_latent_x = NULL,
path_observed_x = NULL,
path_latent_span = c(0.2, 0.8),
path_observed_span = c(0.1, 0.9),
path_latent_y = 0.8,
path_observed_y = 0.2,
path_latent_cex = 1,
path_observed_cex = 0.9,
path_arrow_col = "gray40",
path_arrow_lwd = 1,
path_arrow_length = 0.08,
path_loading_cex = 0.75,
path_latent_min_gap = 0.06,
...
)Arguments
- mars_object
A fitted object returned by
mars.- factor_method
One of
"none","efa", or"cfa".- n_factors
Number of factors when
factor_method = "efa".- cfa_model
Lavaan-style latent model syntax when
factor_method = "cfa".- group_var
Optional grouping or moderator variable in
mars_object$dataused for multi-group configural-versus-metric CFA checks whenfactor_method = "cfa".- loading_threshold
Absolute-value threshold used to flag salient loadings in publication-ready tables.
- synthesis_method
Correlation synthesis method:
"model","average", or"weighted".- synthesis_transform
Optional pooling transform for
"average"/"weighted":"none"or"fisher_z".- missing_corr
Missing-correlation handling for synthesized matrices. One of
"available","pairwise", or"em".- attenuation
Attenuation-correction mode for synthesized correlations. One of
"none"or"correct".- reliability
Reliability input used when
attenuation = "correct".- reliability_missing
Strategy for missing reliability values. One of
"error","skip","impute_mean", or"assume_1".- missing_sensitivity
Logical; if
TRUE, computes pooled-correlation sensitivity across missing-correlation handling methods.- attenuation_sensitivity
Logical; if
TRUE, computes pooled-correlation sensitivity across attenuation settings.- reliability_scenarios
Optional named list of reliability inputs used when
attenuation_sensitivity = TRUE. Each element should be a validreliabilityobject (named vector or data frame).- pd_adjust
Positive-definite repair for synthesized correlations:
"none","eigen_clip", or"nearpd".- pd_tol
Minimum eigenvalue tolerance used by
pd_adjust = "eigen_clip".- include_publication_bias
Logical; if
TRUE, attempts an Egger-type small-study-effects check.- ...
Additional graphical arguments passed to the underlying plotting functions.
- object
An object of class
"synthesis_report".- x
An object of class
"synthesis_report".- digits
Number of digits used when printing numeric tables.
- type
Plot type to display. One of
"pooled_r","heterogeneity","residuals","calibration","loadings","path","influence","influence_heatmap", or"invariance".- main
Optional plot title.
- main_adj
Horizontal title alignment in
[0, 1].- main_line
Optional title line. If
NULL, the graphics default is used.- invariance_legend_position
Legend position for the invariance plot, or
"none"to suppress it.- invariance_legend_title
Optional legend title for the invariance plot.
- path_center_latent
Logical; if
TRUE, center latent nodes above their indicators in path diagrams.- path_latent_x
Optional numeric vector of x positions for latent variables in the path diagram.
- path_observed_x
Optional numeric vector of x positions for observed indicators in the path diagram.
- path_latent_span
Numeric length-2 vector giving the horizontal span used for latent nodes when positions are generated automatically.
- path_observed_span
Numeric length-2 vector giving the horizontal span used for observed nodes when positions are generated automatically.
- path_latent_y
Vertical position for latent nodes in the path diagram.
- path_observed_y
Vertical position for observed nodes in the path diagram.
- path_latent_cex
Text scaling for latent-node labels.
- path_observed_cex
Text scaling for observed-node labels.
- path_arrow_col
Arrow color for the path diagram.
- path_arrow_lwd
Arrow line width for the path diagram.
- path_arrow_length
Arrowhead length for the path diagram.
- path_loading_cex
Text scaling for path loading labels.
- path_latent_min_gap
Minimum horizontal spacing enforced between latent nodes when positions are generated automatically.
Examples
if (FALSE) { # \dontrun{
fit <- mars(
data = becker09,
studyID = "ID",
effectID = "numID",
sample_size = "N",
effectsize_type = "cor",
varcov_type = "weighted",
variable_names = c(
"Cognitive_Performance",
"Somatic_Performance",
"Selfconfidence_Performance",
"Somatic_Cognitive",
"Selfconfidence_Cognitive",
"Selfconfidence_Somatic"
)
)
report <- synthesis_factor_report(fit, factor_method = "efa", n_factors = 1)
summary(report)
} # }