makeData {kpodclustr}R Documentation

Make test data

Description

makeData Function for making test data

Usage

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

p <- 2
n <- 100
k <- 3
sigma <- 0.25
missing <- 0.05

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


[Package kpodclustr version 1.1 Index]