get_cemitool_r2_beta {CEMiTool} | R Documentation

## Calculate CEMiTool beta and R2 values

### Description

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

### Usage

    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

    # Get example expression data
    data(expr0)
    # Initialize new CEMiTool object with expression data
    cem <- new_cem(expr0)
    # Filter expression data
    cem <- filter_expr(cem)
    # Get modules and beta data
    cem <- find_modules(cem)
    # Get CEMiTool R2 and beta values
    get_cemitool_r2_beta(cem)

[Package CEMiTool version 1.4.2 Index]