corCS: Compound symmetry correlation structure

View source: R/corStruct.R

corCSR Documentation

Compound symmetry correlation structure

Description

This function is a constructor for the corCS correlation matrix representing a compound symmetry structure corresponding to uniform correlation.

Usage

corCS(rho, p = 2)

Arguments

rho

the value of the correlation between any two correlated observations, which must be between -1 and 1.

p

dimension of the requested correlation matrix.

Value

Returns a p by p matrix.

Examples

R <- corCS(rho = 0.8, p = 5)

fastmatrix documentation built on Oct. 12, 2023, 5:14 p.m.

Related to corCS in fastmatrix...