simulate_labels: Simulate labels

Description Usage Arguments Value Author(s) Examples

View source: R/netprioR-simulation.R

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))

netprioR documentation built on Nov. 8, 2020, 5:40 p.m.