View source: R/cdtRegression_functions.R
regression.Vector | R Documentation |
Regression with a matrix and a vector performed by column lm(Y~X)
.
regression.Vector(X, Y, min.len)
X |
A vector of length N. |
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 <- rnorm(20)
Y <- matrix(rnorm(200), nrow = 20, ncol = 10)
res <- regression.Vector(X, Y, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.