makeData: Make test data

Description Usage Arguments Author(s) Examples

View source: R/kpodclustr-package.r

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

kpodclustr documentation built on May 30, 2017, 5:10 a.m.

Search within the kpodclustr package
Search all R packages, documentation and source code