Learn R Programming

microclustr (version 0.1.0)

SimData: Generates a simulated dataset based on a true partition

Description

Generates a simulated dataset based on a true partition

Usage

SimData(true_L, nfields, ncat, true_beta)

Arguments

true_L

Vector of size max cluster size with number of clusters of each size

nfields

Number of fields

ncat

Vector with number of categories per field

true_beta

Distortion probability for the fields

Value

Simulated data set

Examples

Run this code
# NOT RUN {
truePartition <- c(2,2,2,2)
numberFields <- 2
numberCategories <- rep(5,2)
trueBeta <- 0.01
SimData(truePartition, numberFields, numberCategories, trueBeta)
# }

Run the code above in your browser using DataLab