Simulate labels

Share:

Description

Simulate labels

Usage

1
simulate_labels(values, sizes, nobs)

Arguments

values

Vector of labels for groups

sizes

Vector of group sizes

nobs

Vector of number of observed labels per group

Value

List of Y, Yobs and indices for labeled instances

Author(s)

Fabian Schmich

Examples

1
2
3
labels <- simulate_labels(values = c("Positive", "Negative"), 
sizes = c(10, 10), 
nobs = c(5, 5))