Learn R Programming

FactorCopulaModel (version 0.1.1)

semiCorTable: Semi-correlation table for a multivariate data set

Description

Semi-correlation table for several variables

Usage

semiCorTable(mdat, varnames, inscore=FALSE)

Value

d*(d-1)/2 by 8-column dataframe with columns j1,j2,ncor,lcor,ucor,bvnsemic, varnames[j1] varnames[j2]for 2 variable indices, correlation of normal scores, lower semi-correlation, upper semi-correlation and BVN semi-correlation assuming Gaussian copula Stronger than Gaussian dependence in upper tail if ucor is larger than bvn semicor

Arguments

mdat

nxd multivariate data set with d>=2 columns

varnames

d-vector of (abbreviated) variable names

inscore

TRUE if mdat has already been converted to normal scores, default FALSE

Examples

Run this code
rmat = toeplitz(c(1,.7,.4))
print(rmat)
set.seed(1234)
zdat = rmvn(n=500,rmat)
set.seed(12345)
tdat = rmvt(n=500,rmat,nu=5)
vnames=c("V1","V2","V3")
zsemi = semiCorTable(zdat,vnames)
tsemi = semiCorTable(tdat,vnames)
cat("trivariate normal\n")
print(zsemi)
cat("trivariate t(5)\n")
print(tsemi)

Run the code above in your browser using DataLab