centering.red.pred: centering and reduction of the test set

Description Usage Arguments Value Examples

View source: R/centering.reduction.R

Description

centering and reduction of the test set

Usage

1
centering.red.pred(X, archive_moy_ect)

Arguments

X

the test set dataframe to center and reduce

archive_moy_ect

list containing the mean and standard deviation of each column of the training set

Value

the dataframe of the test set centered and reduced

Examples

1
2
3
4
arch <- data.frame(Sepal.Length=c(mean(iris[1:100,1]),
sqrt((nrow(iris)-1)/var(iris[1:100,1]))),Sepal.Width=c(mean(iris[1:100,2]),
sqrt((nrow(iris)-1)/var(iris[1:100,2]))))
centering.red.pred(iris[101:150,c(1,2)],arch)

Beuleup93/dgrGlm documentation built on Dec. 17, 2021, 10:50 a.m.