powered by
makeData Function for making test data
makeData
makeData(p, n, k, sigma, missing, seed = 12345)
Number of features (or variables)
Number of observations
Number of clusters
Variance
Desired missingness percentage
(Optional) Seed (default seed is 12345)
# NOT RUN { p <- 2 n <- 100 k <- 3 sigma <- 0.25 missing <- 0.05 X <- makeData(p,n,k,sigma,missing)$Orig # }
Run the code above in your browser using DataLab