intraclass_cov: Construct an intraclass covariance matrix.

Description Usage Arguments Value

Description

We define a p \times p intraclass covariance (correlation) matrix to be Σ_m = σ^2 (1 - ρ) J_p + ρ I_p, where -(p-1)^{-1} < ρ < 1, I_p is the p \times p identity matrix, and J_p denotes the p \times p matrix of ones.

Usage

1
  intraclass_cov(p, rho, sigma2 = 1)

Arguments

p

the dimension of the matrix

rho

the intraclass covariance (correlation) constant

sigma2

the coefficient of the intraclass covariance matrix

Value

an intraclass covariance matrix matrix of size p



Search within the clusteval package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.