pcomp Matrix Views
Principal components analysis of the columns in a matrix.
Syntax
There are two forms of the pcomp command. The first form, which applies when displaying eigenvalue table output or graphs of the ordered eigenvalues, has only options and no command argument.
matrix_name.pcomp(options)
The second form, which applies to the graphs of component loadings, component scores, and biplots, uses the optional argument to determine which components to plot. In this form:
matrix_name.pcomp(options) [graph_list]
where the [graph_list] is an optional list of integers and/or vectors containing integers identifying the components to plot. Multiple pairs are handled using the method specified in the “mult=” option.
If the list of component indices omitted, EViews will plot only first and second components. Note that the order of elements in the list matters; reversing the order of two indices reverses the axis on which each component is displayed.
Options

 out=arg (default=“table”) Output: table of eigenvalue and eigenvector results (“table”), graphs of ordered eigenvalues (“graph”), graph of the eigenvectors (“loadings”), graph of the component scores (“scores”), biplot of the loadings and scores (“biplot”).Note: when specifying the eigenvalue graph (“out=graph”), the option keywords “scree” (scree graph), “diff” (difference in successive eigenvalues), and “cproport” (cumulative proportion of total variance) may be included to control the output. By default, EViews will display the scree graph. If you may one or more the three keywords, EViews will construct the graph using only the specified types. n=integer Maximum number of components to retain when presenting table (“out=table”) or eigenvalue graph (“out=graph”) results.The default is to set to the number of variables.EViews will retain the minimum number satisfying any of: “n=”, “mineig=” or “cproport=”. mineig=arg (default=0) Minimum eigenvalue threshold value: we retain components with eigenvalues that are greater than or equal to the threshold.EViews will retain the minimum number satisfying any of: “n=”, “mineig=” or “cproport=”. cproport=arg (default=1) Cumulative proportion threshold value: we retain , the number of components required for the sum of the first eigenvalues exceeds the specified value for the cumulative variance explained proportion.EViews will retain the minimum number satisfying any of: “n=”, “mineig=” or “cproport=”. eigval=vec_name Specify name of vector to hold the saved the eigenvalues in workfile. eigvec=mat_name Specify name of matrix to hold the save the eigenvectors in workfile. prompt Force the dialog to appear from within a program. p Print results.
Covariance Options

 cov=arg (default=“cov”) Covariance calculation method: ordinary (Pearson product moment) covariance (“cov”), ordinary correlation (“corr”), Spearman rank covariance (“rcov”), Spearman rank correlation (“rcorr”), Kendall’s tau-b (“taub”), Kendall’s tau-a (“taua”), uncentered ordinary covariance (“ucov”), uncentered ordinary correlation (“ucorr”). wgt=name (optional) Name of vector containing weights. The number of rows of the weight vector should match the number of rows in the original matrix. wgtmethod=arg (default = “sstdev” Weighting method: frequency (“freq”), inverse of variances (“var”), inverse of standard deviation (“stdev”), scaled inverse of variances (“svar”), scaled inverse of standard deviations (“sstdev”).Only applicable for ordinary (Pearson) calculations where “weights=” is specified. Weights for rank correlation and Kendall’s tau calculations are always frequency weights. pairwise Compute using pairwise deletion of observations with missing cases (pairwise samples). df Compute covariances with a degree-of-freedom correction accounting for the mean (for centered specifications) and any partial conditioning variables. The default behavior in these cases is to perform no adjustment (e.g. – compute sample covariance dividing by rather than ).
Graph Options