The function multivar
applies a multivariate method
to decompose the output variables on a given basis.
multivar(simuls, dimension = NULL, reduction, centered = TRUE,
scale = TRUE, basis.args = list())
a data.frame of size N x T
, typically a set of N
simulation outputs of length T
the number of variables to analyse, specified by an integer (for example 3) or by the minimal proportion of inertia (for example 0.95) to keep in the output decomposition
a function to decompose the multivariate output on a basis of smaller dimension
logical value. If TRUE the output variables are centred.
logical value. If TRUE the output variables are normalized.
a list of arguments for the function given in the reduction
argument. See the function help for more precision.
A list containing:
a data.frame of size N x d
, where d
is the number of basis vectors. It contains the coefficients of the decomposition for each row of the simuls
data.frame.
a matrix of size T x d
. It contains the vectors of the user-defined basis.
standard deviations of the columns of H
number of components kept from the decomposition
total sums of squares of the simulations (after application of centered
and scale
)
either 0 or the column averages of simuls
either 1 or sdY
, depending on the scale
argument
standard deviations of the columns of simuls
correlation matrix (L*sdev), of size T x nbcomp
kept in case the option scale has been changed in the function
cumulated percentage of SS_H (sdev^2) with respect to SStot
list with the element reduction
storing the name of the argument reduction
# NOT RUN {
data(biomasseY)
res <- multivar(biomasseY, dimension=0.95, reduction=basis.ACP)
# }
Run the code above in your browser using DataLab