path_model: Path Model Function

View source: R/fit_model.r

path_modelR Documentation

Path Model Function

Description

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

Usage

path_model(
  data,
  model,
  num_obs,
  adjust_se = TRUE,
  method_mat = "loehlin",
  method_null = "sem",
  ...
)

Arguments

data

A list that contains the correlation matrix for model fitting and the variance matrix. This would most likely come from the extract_model function.

model

This is model syntax specified in the format by lavaan.

num_obs

Number of observations

adjust_se

Adjust the standard errors to reflect the ...

method_mat

Method of estimation, can either be "loehlin" or "lavaan". Default is "loehlin"

method_null

Unsure

...

Currently not used.

See Also

See https://lavaan.ugent.be/ for more information on lavaan syntax.


lebebr01/metaRmat documentation built on Feb. 24, 2024, 10:44 a.m.