powered by
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 )
sampled binary data
Number of clusters
Number of variables
number of conditioned covariates
number of samples
type of background edges
specify if conditional probability table of the background edges is constant across clusters
# \donttest{ # 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) # }
Run the code above in your browser using DataLab