block.true.cov {sparseCov}R Documentation

This function construct a covariance matrix with a block diagonal structure.

Description

This function construct a covariance matrix with a block diagonal structure.

Usage

block.true.cov(p, block.size = 3)

Arguments

p

The number of variants.

block.size

The block size.

Value

A covariance matrix with a block diagonal structure.

Examples

data.true.cov <- block.true.cov(30)
data.true.cov[1:9,1:9]

[Package sparseCov version 0.0.1 Index]