performs a principal component analysis with respect to instrumental variables.
pcaiv(dudi, df, scannf = TRUE, nf = 2)
# S3 method for pcaiv
plot(x, xax = 1, yax = 2, …)
# S3 method for pcaiv
print(x, …)
# S3 method for pcaiv
summary(object, …)
a duality diagram, object of class dudi
a data frame with the same rows
a logical value indicating whether the eigenvalues bar plot should be displayed
if scannf FALSE, an integer indicating the number of kept axes
an object of class pcaiv
the column number for the x-axis
the column number for the y-axis
further arguments passed to or from other methods
returns an object of class pcaiv
, sub-class of class dudi
a data frame with the modified array (projected variables)
a numeric vector with the column weigths (from dudi
)
a numeric vector with the row weigths (from dudi
)
a vector with the all eigenvalues
an integer indicating the rank of the studied matrix
an integer indicating the number of kept axes
a data frame with the Pseudo Principal Axes (PPA)
a data frame dudi$ls
with the predicted values by X
a data frame with the inner products between the CPC and Y
data frame with the Constraint Principal Components (CPC)
the matched call
a data frame with the explanatory variables
a data frame with the dependant variables
a data frame with the projections of lines of dudi$tab
on PPA
a table containing information about contributions of the analyses : absolute (1) and cumulative (2) contributions of the decomposition of inertia of the dudi object, absolute (3) and cumulative (4) variances of the projections, the ration (5) between the cumulative variances of the projections (4) and the cumulative contributions (2), the square coefficient of correlation (6) and the eigenvalues of the pcaiv (7)
a data frame with the Principal axes of dudi$tab
on PPA
a data frame with the loadings (Constraint Principal Components as linear combinations of X
a data frame with the correlations between the CPC and X
Rao, C. R. (1964) The use and interpretation of principal component analysis in applied research. Sankhya, A 26, 329--359. Obadia, J. (1978) L'analyse en composantes explicatives. Revue de Statistique Appliquee, 24, 5--28. Lebreton, J. D., Sabatier, R., Banco G. and Bacou A. M. (1991) Principal component and correspondence analyses with respect to instrumental variables : an overview of their role in studies of structure-activity and species- environment relationships. In J. Devillers and W. Karcher, editors. Applied Multivariate Analysis in SAR and Environmental Studies, Kluwer Academic Publishers, 85--114.
# NOT RUN {
data(rhone)
pca1 <- dudi.pca(rhone$tab, scan = FALSE, nf = 3)
iv1 <- pcaiv(pca1, rhone$disch, scan = FALSE)
summary(iv1)
plot(iv1)
# }
Run the code above in your browser using DataLab