PCA                package:FactoMineR                R Documentation

_P_r_i_n_c_i_p_a_l _C_o_m_p_o_n_e_n_t _A_n_a_l_y_s_i_s (_P_C_A)

_D_e_s_c_r_i_p_t_i_o_n:

     Performs Principal Component Analysis (PCA) with supplementary
     individuals, supplementary quantitative  variables and
     supplementary qualitative variables.

_U_s_a_g_e:

     PCA(X, scale.unit = TRUE, ncp = 5, ind.sup = NULL, 
         quanti.sup = NULL, quali.sup = NULL, row.w = NULL, 
         col.w = NULL, graph = TRUE)

_A_r_g_u_m_e_n_t_s:

       X: a data frame with _n_ rows (individuals) and _p_ columns
          (numeric variables)

     ncp: number of dimensions kept in the results (by default 5)

scale.unit: a boolean, if TRUE (value set by default) then data are
          scaled to unit variance

 ind.sup: a vector indicating the indexes of the supplementary
          individuals

quanti.sup: a vector indicating the indexes of the quantitative
          supplementary variables

quali.sup: a vector indicating the indexes of the qualitative
          supplementary variables

   row.w: an optional row weights (by default, uniform row weights)

   col.w: an optional column weights (by default, uniform column
          weights)

   graph: boolean, if TRUE a graph is displayed

_V_a_l_u_e:

     Returns a list including: 

     eig: a numeric vector containing all the eigenvalues

     var: a list of matrices containing all the results for the active
          variables (coordinates, correlation between variables and
          axes, square cosine, contributions)

     ind: a list of matrices containing all the results for the active
          individuals (coordinates, square cosine, contributions)

 ind.sup: a list of matrices containing all the results for the
          supplementary individuals (coordinates, square cosine)

quanti.sup: a list of matrices containing all the results for the
          supplementary quantitative variables (coordinates,
          correlation between variables and axes)

quali.sup: a list of matrices containing all the results for the
          supplementary qualitative variables (coordinates of each
          categories of each variables, and v.test which is a criterion
          with a Normal distribution)


     Returns the individuals factor map and the variables factor map.

_A_u_t_h_o_r(_s):

     Jrmy Mazet, Franois Husson Franois.Husson@agrocampus-rennes.fr

_S_e_e _A_l_s_o:

     'print.PCA', 'plot.PCA'

_E_x_a_m_p_l_e_s:

     data(decathlon)
     res.pca <- PCA(decathlon, quanti.sup = 11:12, quali.sup=13)
     plot(res.pca,choix="ind",habillage="quali")

