makecorb: generate a square root of a correlation matrix by specifying...

View source: R/DataGen.R

makecorbR Documentation

generate a square root of a correlation matrix by specifying correlation matrix

Description

This function generate data follows linear model based on parameter input.

Usage

makecorb(rho, p, fix = TRUE)

Arguments

rho

parameter controlling the correlation

p

dimensional of the matrix

fix

the correlation is a constant if fix=TRUE, Otherwise, it is rho^|i-j|

Value

corr correlation matrix


hychen-uic/TEV documentation built on Jan. 24, 2025, 9:14 p.m.