powered by
Creates nclust clusters normally distributed around 1:nclust
nclust
1:nclust
simulate_data( n = 100, sd = 0.3, nclust = 30, dims = 2, frac_na = NULL, add_true_clust = TRUE, id_column = TRUE )
simulated data
number of observations per cluster
sd
number of clusters
number of dimensions
fraction of NA in the first dimension
add a column with the true cluster ids
add a column with the id
simulate_data(n = 100, sd = 0.3, nclust = 5, dims = 2) # add 20% missing data simulate_data(n = 100, sd = 0.3, nclust = 5, dims = 2, frac_na = 0.2)
Run the code above in your browser using DataLab