getMaxLR: Get maximum LR for correlated features

Description Usage Arguments Examples

View source: R/NBfunctions.R

Description

This is a helper function for OncosigNB;Given the specified columns as a dataframe, return the maximum LR for each case. Note that these columns should be highly correlated.

Usage

1
getMaxLR(df_1)

Arguments

df_1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##---- 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) 
{
    the_max_results = lapply(1:nrow(df_1), function(x) {
        max(df_1[x, ])
    })
    the_max_results = unlist(the_max_results)
    return(the_max_results)
  }

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