distance_measures

0th

Percentile

Internal: Calculate difference between S and Sigma_hat

Calculate the difference between the empirical (S) and the model-implied indicator variance-covariance matrix (Sigma_hat) using different distance measures.

Keywords
internal
Usage
calculateDG(
  .object = NULL,
  .matrix1 = NULL,
  .matrix2 = NULL,
  .saturated = args_default()$.saturated,
  ...
)

calculateDL( .object = NULL, .matrix1 = NULL, .matrix2 = NULL, .saturated = args_default()$.saturated, ... )

calculateDML(.object = NULL, .saturated = args_default()$.saturated, ...)

Arguments
.object

An R object of class cSEMResults resulting from a call to csem().

.matrix1

A matrix to compare.

.matrix2

A matrix to compare.

.saturated

Logical. Should a saturated structural model be used? Defaults to FALSE.

...

Ignored.

Details

The functions are only applicable to objects inheriting class cSEMResults_default. or cSEMResults_2ndorder. For objects of class cSEMResults_multi use lapply(.object, calculateXX()).

The geodesic and the squared Euclidian distance may also be computed for any two matrices A and B by supplying A and B directly via the .matrix1 and .matrix2 arguments. If A and B are supplied .object is ignored.

Value

A single numeric value giving the distance between two matrices.

Functions

  • calculateDG: The geodesic distance (dG).

  • calculateDL: The squared Euclidian distance

  • calculateDML: The distance measure used by FIML

Aliases
  • distance_measures
  • calculateDG
  • calculateDL
  • calculateDML
Documentation reproduced from package cSEM, version 0.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.