formulaFalseNeg: Generate class labels by a noisy formula with high false...

Description Usage Arguments Value Examples

Description

Generate class labels by using the readout mechanism. Logical formula is applied to two variables which are read out from the real data using the var1 and var2 probabilities. This only works with binary variables.

Usage

1
formulaFalseNeg(data, var1, var2, false.neg, logical.formula)

Arguments

data

a matrix or data.frame containing binary observations (columns are variables)

var1

index or name of the first variable

var2

index or name of the second variable

false.neg

a false negative probability

logical.formula

logical formula to apply

Value

a binary vector containing the class labels

Examples

1
2
3
# noisy OR function with 0.1 probability of error for reading "a" and "b" (error in both 1 and 0)
data <- cbind("a"=c(0,0,1,1), "b"=c(0,1,0,1))
formulaFalseNeg(data, "a", "b", 0.8, "a | b")


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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.