genp1: Generate difference of two precision matrices.

Description Usage Arguments Value Examples

Description

Generate difference of two precision matrices with certain number of non-zero elements.

Usage

1
genp1(p, n, sigma)

Arguments

p

The dim of the matrix.

n

The non-zero element in the matrix.

sigma

The parameter used to describe the magnitude of the non-zero element.

Value

A symmetric pXp matrix.

Examples

1
2
set.seed(1)
diffmatrix<-genp1(50,100,0.5)

SusanYuan/Difdtl documentation built on May 9, 2019, 3:23 p.m.