nextdiff | R Documentation |
Compute the next simple difference-component; this is an auxiliary
function for sca
.
nextdiff(S, P, withinblock, criterion)
S |
correlation/covariance matrix |
P |
component matrix |
withinblock |
logical indicating whether any given difference-component should only involve variables belonging to the same block-component. |
criterion |
character string specifying the optimality criterion,
see |
Uses firstpcres(S,P)
and subsequently
shrinkdiff()
, the latter in a loop when
withinblock
is true.
In order to ensure uniqueness, we ensure that the first (non zero) entry of the principal component is always positive.
a list with components
P |
the new component matrix, i.e. the input |
nextpc |
the next principal component with many entries set to 0. |
Valentin Rousson rousson@ifspm.unizh.ch and Martin Maechler maechler@stat.math.ethz.ch.
shrinkdiff
; sca
, also for references
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.