fcors.value: This function specifies the correlation matrix between the...

View source: R/Input_fcors.R

fcors.valueR Documentation

This function specifies the correlation matrix between the factors.

Description

The user specifies the correlation matrix between the factors. The values entered should be between -1 and +1. The values can be given by column or row but should be given in order. Please see the example for a correlation among three factors. In case there is only one factor following line should be entered "cors.value(nf=1, cors=c(1,1,1))"

Usage

fcors.value(nf, cors)

Arguments

nf

the number of factor/s.

cors

vector of the correlations.

Value

The function returns the factor correlation matrix. This is a symmetric matrix, which shows the correlation values among the factors in the model.

Author(s)

Fatih Orcan

Examples

# This example represents a three-factor CFA model
#
fcors.value(nf=3, cors=c(1,.5,.6,.5,1,.4,.6,.4,1))

MonteCarloSEM documentation built on May 2, 2023, 5:14 p.m.