Learn R Programming

brainGraph (version 2.7.3)

get_lm_vars: Get some variables for LM

Description

Get some variables for LM

Usage

get_lm_vars(covars, exclude.cov, ...)

Arguments

covars

A data.table of the covariates of interest

exclude.cov

Character vector of covariates to exclude (default: NULL)

...

Arguments passed to brainGraph_GLM_design (optional)

Value

A list containing:

X

The design matrix

lev

The leverage

n

The number of observations

p

The number of parameters