getFinalLR: Multipy LRs to get final LR

Description Usage Arguments Examples

View source: R/NBfunctions.R

Description

This is a helper function for OncoSigNB(). This function gets the final LR given the input dataframe. The first two columns are the name and the response variable, columns 3 and up feature values.

Usage

1
getFinalLR(df_1)

Arguments

df_1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (df_1) 
{
    to_return = lapply(1:nrow(df_1), function(x) {
        prod(df_1[x, 3:ncol(df_1)])
    })
    return(to_return)
  }

califano-lab/OncoSig documentation built on Oct. 2, 2020, 3:24 p.m.