eval_r2_CI: Compute R-squared with confidence interval.

Description Usage Arguments Value Examples

View source: R/eval.R

Description

Given a data frame containing a continupus response variable and predictor(s), compute the R-squared with confidence interval and the p-value. If multiple predictors are specified, we return the minimum p-value

Usage

1
eval_r2_CI(data, response, predictors, level = 0.95)

Arguments

data

A data frame containing the response and predictor(s)

response

The name of the response variable

predictors

The predictor variable(s)

level

The confidence level of the interval

Value

a data frame containing r-squared (eval), confidence interval (l_eval, u_eval), p-value along with the information of the specified response and predictors

Examples

1
2
3
4
## Not run: 
eval_r2_CI(data_df, 'INI50', c('covar_score'))

## End(Not run)

rivas-lab/snpnet documentation built on Dec. 14, 2021, 3:22 a.m.