mave.data: The reduced data matrix

Description Usage Arguments See Also Examples

View source: R/MAVE_DATA.R

Description

The function returns the reduced data matrix of the original data. The reduced data matrix is obtained by the original data multiplied by the dimension reduction directions of given dimension.

Usage

1
mave.data(dr, x, dim = NULL)

Arguments

dr

the object returned by mave or mave.dim

x

the original data matrix of p dimensions

dim

the dimension of the reduced data matrix.

See Also

coef.mave for obtaining the dimension reduction directions

Examples

1
2
3
4
x <- matrix(rnorm(400),100,4)
y <- x[,1]+x[,2]+as.matrix(rnorm(100))
dr <- mave(y~x)
x.reduced <- mave.data(dr,x,3)

MAVE documentation built on March 3, 2021, 1:12 a.m.