genCorMat: Generate the correlation matrix for the clusteded data

Description Usage Arguments Details Value

View source: R/genCorMat.R

Description

genCorMat generate the data with specified correlation matrix.

Usage

1
genCorMat(corstr, rho, size)

Arguments

corstr

A character string specifying the correlation structure for the clusters. Allowed structures are: "independence", "exchangeable" and "ar1".

rho

A numeric parameter in correlation structure for the autocorrelation coefficient.

size

A numeric number indicating the size of the matrix.

Details

genCorMat returns the corresponding correlation matrix according to the value of the corstr argument.

Value

a matrix which represents the diffetent correlation matrix.


seqest documentation built on July 2, 2020, 2:28 a.m.

Related to genCorMat in seqest...