rquasisymmetric: Simulate a quasi-symmetric matrix

Description Usage Arguments Value Examples

View source: R/quasi_symm.R

Description

Simulate a quasi-symmetric matrix

Usage

1
2
rquasisymmetric(n, lambda = 10, density = 1, dimnames = list(cited =
  paste0("P", 1:n), citing = paste0("P", 1:n)))

Arguments

n

the dimension of the matrix

lambda

the mean of the underlying Poisson random number generator

density

the density (i.e. proportion of non-zeroes) of the symmetric component

dimnames

names of the matrix dimensions, as a list

Value

A sparse, quasi-symmetric matrix of dimension n by n.

Examples

1

Selbosh/scrooge documentation built on May 5, 2019, 8 p.m.