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)

Difdtl documentation built on Jan. 15, 2017, 8:21 a.m.