Make test data

Share:

Description

makeData Function for making test data

Usage

1
makeData(p, n, k, sigma, missing, seed = 12345)

Arguments

p

Number of features (or variables)

n

Number of observations

k

Number of clusters

sigma

Variance

missing

Desired missingness percentage

seed

(Optional) Seed (default seed is 12345)

Author(s)

Jocelyn T. Chi

Examples

1
2
3
4
5
6
7
p <- 2
n <- 100
k <- 3
sigma <- 0.25
missing <- 0.05

X <- makeData(p,n,k,sigma,missing)$Orig