Learn R Programming

seqest (version 1.0.1)

genCorMat: Generate the correlation matrix for the clusteded data

Description

genCorMat generate the data with specified correlation matrix.

Usage

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.

Value

a matrix which represents the diffetent correlation matrix.

Details

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