Compute principal component scores and quality metrics for supplementary individuals (rows) projected into an existing PCA solution.
pca_supplementary_individuals(
data,
rotation,
sdev,
center = NULL,
scale = NULL,
total_weight = NA_real_
)A list with elements scores, contributions, and cos2.
Matrix-like object whose rows correspond to supplementary individuals and columns to the original variables.
Rotation matrix from the PCA model (e.g. the rotation
element of a bigpca result).
Numeric vector of component standard deviations associated with
rotation.
Optional numeric vector giving the centring applied to each variable when fitting the PCA. Defaults to zero centring.
Optional numeric vector describing the scaling applied to each
variable when fitting the PCA. When NULL, no scaling is applied.
Optional positive scalar passed to
pca_individual_contributions() when computing contributions. When left as
NA (the default), the resulting contributions for each component are
normalised to sum to one across supplementary individuals. Supplying a
value bypasses this normalisation and delegates the scaling to
pca_individual_contributions().