View source: R/cdtRegression_functions.R
| regression.Matrix | R Documentation | 
Regression between two matrices performed by column lm(Y~X).
regression.Matrix(X, Y, min.len)
X | 
 A numeric NxK matrix.  | 
Y | 
 A numeric NxK matrix.  | 
min.len | 
 An integer specify the minimum length of non missing data.  | 
Returns a numeric 10xK matrix.
library(CDT)
set.seed(1)
X <- matrix(rnorm(200), nrow = 20, ncol = 10)
set.seed(2)
Y <- matrix(rnorm(200), nrow = 20, ncol = 10)
res <- regression.Matrix(X, Y, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.