Usage
camel.tiger.generator(n = 200, d = 50, graph = "random", v = NULL, u = NULL, g = NULL, prob = NULL, seed = NULL, vis = FALSE, verbose = TRUE)
Arguments
n
The number of observations (sample size). The default value is 200
.
d
The number of variables (dimension). The default value is 50
.
graph
The graph structure with 5 options: "random"
, "hub"
, "cluster"
, "band"
, and "scale-free"
.
v
The off-diagonal elements of the precision matrix, controlling the magnitude of partial correlations with u
. The default value is 0.3
.
u
A positive number being added to the diagonal elements of the precision matrix, to control the magnitude of partial correlations. The default value is 0.1
.
g
For "cluster"
or "hub"
graph, g
is the number of hubs or clusters in the graph. The default value is about d/20
if d >= 40
and 2
if d < 40
. For "band"
graph, g
is the bandwidth and the default value is 1
. NOT applicable to "random"
graph.
prob
For "random"
graph, it is the probability that a pair of nodes has an edge. The default value is 3/d
. For "cluster"
graph, it is the probability that a pair of nodes has an edge in each cluster. The default value is 6*g/d
if d/g <= 30<="" code=""> and 0.3
if d/g > 30
. NOT applicable to "hub"
, "band"
, and scale-free
graphs.
=>
seed
Set seed for data generation. The default value is 1.
vis
Visualize the adjacency matrix of the true graph structure, the graph pattern, the covariance matrix and the empirical covariance matrix. The default value is FALSE
.
verbose
If verbose = FALSE
, tracing information printing is disabled. The default value is TRUE
.