get_cemitool_r2_beta: Calculate CEMiTool beta and R2 values

Description Usage Arguments Value Examples

Description

This function takes a CEMiTool object with beta data and returns a vector containing the chosen beta and corresponding R squared value.

Usage

1
2
3
4
get_cemitool_r2_beta(cem, ...)

## S4 method for signature 'CEMiTool'
get_cemitool_r2_beta(cem, eps = 0.1)

Arguments

cem

A CEMiTool object containing the fit_indices slot

...

Optional parameters.

eps

A value indicating the accepted interval between successive values of R squared to use to calculate the selected beta. Default: 0.1.

Value

A vector containing R squared value and the chosen beta parameter.

Examples

1
2
3
4
5
6
7
8
# Get example expression data
data(expr0)
# Initialize new CEMiTool object with expression data
cem <- new_cem(expr0, filter=TRUE, apply_vst=FALSE)
# Get modules and beta data
cem <- find_modules(cem)
# Get CEMiTool R2 and beta values
get_cemitool_r2_beta(cem)

CEMiTool documentation built on March 13, 2021, 2 a.m.