get_cemitool_r2_beta | R Documentation |
This function takes a CEMiTool object with beta data and returns a vector containing the chosen beta and corresponding R squared value.
get_cemitool_r2_beta(cem, ...)
## S4 method for signature 'CEMiTool'
get_cemitool_r2_beta(cem, eps = 0.1)
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. |
A vector containing R squared value and the chosen beta parameter.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.