View source: R/normalize_numeric_runmatrix.R View source: R/normalize_design.R
normalize_design | R Documentation |
Normalizes the numeric columns in the design to -1 to 1. This is important to do if your model has interaction or polynomial terms, as these terms can introduce multi-collinearity and standardizing the numeric columns can reduce this problem.
Normalizes the numeric columns in the design to -1 to 1. This is important to do if your model has interaction or polynomial terms, as these terms can introduce multi-collinearity and standardizing the numeric columns can reduce this problem.
normalize_design(design, augmented = NULL)
normalize_design(design, augmented = NULL)
design |
The design matrix. |
augmented |
Default 'NULL'. If |
Normalized design matrix
Normalized run matrix
#Normalize a design
if(skpr:::run_documentation()) {
cand_set = expand.grid(temp = c(100,300,500),
altitude = c(10000,20000),
offset = seq(-10,-5,by=1),
type = c("A","B", "C"))
design = gen_design(cand_set, ~., 24)
#Un-normalized design
design
}
if(skpr:::run_documentation()) {
#Normalized design
normalize_design(design)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.