ScaleNetwork: ScaleNetwork

Description Usage Arguments Value Examples

View source: R/models.R

Description

Spawn a hub network covariance matrix

Usage

1
2
ScaleNetwork(p, preferential_power = 1, u = 0.1, v = 0.3, prec_mat = T,
  scaled = F)

Arguments

p

Positive integer.The desired number of dimensions.

preferential_power

Power coefficient alpha for weighting of degree number as alpha in prefential attachment mechanism.

u

Constant added to the diagonal elements of the precision matrix for controlling the magnitude of partial correlations.

v

Constant added to the off diagonal of the precision matrix for controlling the magnitude of partial correlations.

prec_mat

Should the precision matrix be returned? If false the covariance matrix will be returned (default).

scaled

If TRUE the created precision matrix will be inverted and scaled to a correlation matrix.

Value

A covariance or precision matrix.

Examples

1

lorenzha/hdcd documentation built on Sept. 2, 2018, 8:20 p.m.