lm.rm: Remove the linear main effect

Description Usage Arguments Details Value Examples

View source: R/lm.rm.R

Description

Remove the linear main effect for adjustment

Usage

1
lm.rm(Y, X)

Arguments

Y

Y is the data matrix for response variables. Each row represents the observations of a individual and each column represents a variable.

X

X is the data matrix for adjustment. Each colum represents a variable for adjustment.i

Details

Remove the main effect by using lienar regression for adjustment of the covariates.

Value

The update matrix Y with adjustment for the covariates.

Examples

1
2
3
    Y = matrix(rnorm(50,1,2),nrow=10);
    X = matrix(rnorm(20,0,1),nrow=10);
   rlt = lm.rm(Y,X);

QRFCCA documentation built on Nov. 17, 2017, 7:20 a.m.