View source: R/generate_examples.R
generate_random_model | R Documentation |
Generates a random connected graph and Gamma matrix with conditional independence structure corresponding to that graph.
generate_random_model(d, graph_type = "general", ...)
d |
Number of vertices in the graph |
graph_type |
|
... |
Further arguments passed to functions generating the graph and Gamma matrix |
Other example generation functions:
generate_random_Gamma()
,
generate_random_chordal_graph()
,
generate_random_graphical_Gamma()
,
generate_random_integer_Gamma()
,
generate_random_spd_matrix()
set.seed(1)
d <- 12
generate_random_model(d, 'tree')
generate_random_model(d, 'block')
generate_random_model(d, 'decomposable')
generate_random_model(d, 'general')
generate_random_model(d, 'complete')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.