Learn R Programming

timma (version 1.2.0)

timmaSearchBinary: Prediction in the search space with one.sided TIMMA model

Description

A function to return the prediction error in the search space for sffs

Usage

timmaSearchBinary(profile_k, space, sens, loo = TRUE)

Arguments

profile_k
current selected drug-target interaction data
space
the search space returned by searchSpace function
sens
drug sensitivity data
loo
a logical value indicating whether to use the leave-one-out cross-validation in the model selection process. By default, loo = TRUE.

Value

  • the prediction error

Examples

Run this code
data(tyner_interaction_binary)
data(tyner_sensitivity)
num<-length(tyner_sensitivity[,1])
k_set<-rep(0, dim(tyner_interaction_binary)[2])
k_set[c(1,2,3)]<-1
space<-searchSpace(num, k_set, tyner_interaction_binary, tyner_sensitivity[,1])
profile_k<-tyner_interaction_binary[, which(k_set==1)]
error<-timmaSearchBinary(profile_k, space, tyner_sensitivity[,1])

Run the code above in your browser using DataLab