Learn R Programming

FactorCopulaModel (version 0.1.1)

bifactor2cor_v2: Bi-factor partial correlations to correlation matrix version 2, using the inverse and determinant of a smaller matrix

Description

Bi-factor partial correlations to correlation matrix, determinant, inverse

Usage

bifactor2cor_v2(grsize,rh1,rh2)

Value

list with Rmat = correlation matrix; det = det(Rmat); Rinv = solve(Rmat)

Arguments

grsize

vector with group sizes: d_1,d_2,...,d_G for G groups

rh1

vector of length sum(grsize) of correlation with global latent variable, ordered by group index

rh2

vector of length sum(grsize) of partial correlation with group latent variable given global

Examples

Run this code
# see examples for bifactor2cor()

Run the code above in your browser using DataLab