lobico: Lobico help function

Description Usage Arguments Value Examples

View source: R/lobico.R

Description

A wrapper for implementing C functions for calculating logical models

Usage

1
lobico(X, Y, K, M, solve, param, spec, sens, lambda, weak, pos, addcons)

Arguments

X

An N x P binary matrix with N samples characterized by P binary features

Y

An N x 1 continuous vector with weights for each of the N samples

K

The number of disjunctive terms

M

The maximum number of selected features per disjunctive term

solve

A parameter

param

Some parameters

spec

The constraints on minimum specificity

sens

The constraints on minimum sensitivity

lambda

The regularizer of penalty for model complexity

weak

The parameter about whether to formulate weaker logic model

pos

The parameter about whether to return quick and dirty solutions to disallow negations, i.e. only positive

addcons

Some additional constraints

Value

Return the solution matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(bibw2992)
MutationMatrix <- bibw2992
IC50s <- MutationMatrix$BIBW2992
MutationMatrix <- MutationMatrix[, -2:-1]

th <- 0.5
X <- MutationMatrix
Y <- as.double(IC50s < th)
W <- abs(IC50s - th)

K <- 2
M <- 1

# Build the solver
sol <- lobico(X = X, Y = W, K = K, M = M)

bhklab/RLOBICO documentation built on Nov. 4, 2019, 7:16 a.m.