View source: R/generatebinaryBN.R
sampleData | R Documentation |
Sample binary data from different Bayes nets
sampleData(
k_clust = 3,
n_vars = 20,
n_bg = 0,
n_samples = NULL,
bgedges = "different",
equal_cpt_bg = TRUE
)
k_clust |
Number of clusters |
n_vars |
Number of variables |
n_bg |
number of conditioned covariates |
n_samples |
number of samples |
bgedges |
type of background edges |
equal_cpt_bg |
specify if conditional probability table of the background edges is constant across clusters |
sampled binary data
# sample data
simulation_data <- sampleData(k_clust = 3, n_vars = 15, n_samples = c(200,200,200))
sampled_data <- simulation_data$sampled_data
head(sampled_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.