Usage
alfapcr.tune(y, x, M = 10, maxk = 50, a = seq(-1, 1, by = 0.1),
mat = NULL, ncores = 1, graph = TRUE, col.nu = 15)
Arguments
y
A vector with either continuous, binary or count data.
x
The predictor variables, the compositional data. Zero values are allowed.
M
The number of folds for the K-fold cross validation, set to 10 by default.
maxk
The maximum number of principal components to check.
a
The value of the power transformation, it has to be between -1 and 1. If zero values are present it has to be greater than 0. If $\alpha=0$ the isometric log-ratio transformation is applied and the solution exists in a closed form, since it the classical
mat
You can specify your own folds by giving a mat, where each column is a fold. Each column contains indices of the observations. You can also leave it NULL and it will create folds.
ncores
How many cores to use. If you have heavy computations or do not want to wait for long time more than 1 core (if available) is suggested. It is advisable to use it if you have many observations and or many variables, otherwise it will slow down th process.
graph
If graph is TRUE (default value) a filled contour plot will appear.
col.nu
A number parameter for the filled contour plot, taken into account only if graph is TRUE.