addInterceptDS: Set intercept model

View source: R/addInterceptDS.R

addInterceptDSR Documentation

Set intercept model

Description

The option to turn on or off intercept model.

Usage

addInterceptDS(x.mat, intercept = FALSE)

Arguments

x.mat

The name of design matrix

intercept

The indicator to turn on (=TRUE) or off (=FALSE) the intercept model

Details

If intercept==TRUE, the "1" column was attached on the left side of x.mat, the combination was returned. If intercept==FALSE, x.mat was returned. In the linear regression, y=x \beta+b, the non-intercept model referred to b==0. In this case, the design matrix and response should be z-standardized. The default was non-intercept model

Value

The designed matrix

Author(s)

Han Cao


transbioZI/dsMTLBase documentation built on Jan. 20, 2025, 8:18 p.m.