This function fits the path model and returns adjusted standard errors.

path_model(
  mars_object,
  model,
  num_obs = NULL,
  adjust_se = TRUE,
  se_method = c("delta", "simulation", "bootstrap"),
  se_draws = 1000,
  se_seed = NULL,
  method_null = "sem",
  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"),
  pd_adjust = c("none", "eigen_clip", "nearpd"),
  pd_tol = 1e-08,
  ...
)

Arguments

mars_object

The mars fitted object, or an object returned by mixed_corr_meta.

model

This is model syntax specified in the format by lavaan.

num_obs

Number of observations. For objects returned by mixed_corr_meta, supply this explicitly if you want chi-square/RMSEA-style fit statistics; otherwise those statistics are reported as unavailable because the mixed-correlation workflow does not imply a defensible SEM sample size by default.

adjust_se

Adjust the standard errors to reflect the ...

se_method

Method used for standard errors. "delta" uses the current delta-method approximation, "simulation" uses parametric draws from the pooled correlation vector, and "bootstrap" uses available bootstrap correlation draws when present.

se_draws

Number of draws/resamples used when se_method = "simulation" or "bootstrap".

se_seed

Optional random seed for se_method.

method_null

Unsure

synthesis_method

Correlation synthesis method used to build the matrix supplied to latent/path modeling. One of "model" (default, use the fitted MARS coefficients), "average", or "weighted".

synthesis_transform

Optional transform applied for "average"/"weighted" pooling. One of "none" or "fisher_z".

missing_corr

Missing-correlation handling for synthesized matrices. One of "available" (fallback to model-estimated pair), "pairwise" (pairwise pooling with simple fill for absent pairs), or "em" (EM-style matrix completion).

attenuation

Attenuation-correction mode for synthesized correlations. One of "none" or "correct".

reliability

Reliability input used when attenuation = "correct". Accepts either a named numeric vector by variable or a data frame with variable/reliability columns (optionally with a study column).

reliability_missing

Strategy for missing reliability values. One of "error", "skip", "impute_mean", or "assume_1".

pd_adjust

Positive-definite repair applied to the synthesized correlation matrix prior to model fitting. One of "none", "eigen_clip", or "nearpd".

pd_tol

Minimum eigenvalue tolerance used by pd_adjust = "eigen_clip".

...

Currently not used.

Value

List output with class path; The output is the parameter estimates from the fitted path model.

Details

The input is the coefficients and the variance covariance matrix returned from the mars function.