Performs a particular case of a Principal Component Analysis with respect to Instrumental Variables (pcaiv), in which there is only a single factor as explanatory variable.
## S3 method for class 'dudi'bca(x, fac, scannf =TRUE, nf =2,...)
Arguments
x: a duality diagram, object of class dudi from one of the functions dudi.coa, dudi.pca,...
fac: a factor partitioning the rows of dudi$tab in classes
scannf: a logical value indicating whether the eigenvalues barplot should be displayed
nf: if scannf FALSE, a numeric value indicating the number of kept axes
...: further arguments passed to or from other methods
Returns
Returns a list of class dudi, subclass 'between' containing - tab: a data frame class-variables containing the means per class for each variable
cw: a numeric vector of the column weigths
lw: a numeric vector of the class weigths
eig: a numeric vector with all the eigenvalues
rank: the rank of the analysis
nf: an integer value indicating the number of kept axes
c1: a data frame with the column normed scores
l1: a data frame with the class normed scores
co: a data frame with the column coordinates
li: a data frame with the class coordinates
call: the matching call
ratio: the bewteen-class inertia percentage
ls: a data frame with the row coordinates
as: a data frame containing the projection of inertia axes onto between axes
References
Dolédec, S. and Chessel, D. (1987) Rythmes saisonniers et composantes stationnelles en milieu aquatique I- Description d'un plan d'observations complet par projection de variables. Acta Oecologica, Oecologia Generalis, 8 , 3, 403--426.
Note
To avoid conflict names with the base:::within function, the function within is now deprecated and removed. To be consistent, the between function is also deprecated and is replaced by the method bca.dudi of the new generic bca function.