Stata 11 help for scoreplot

help scoreplot, help loadingplot dialogs: scoreplot loadingplot -------------------------------------------------------------------------------

Title

[MV] scoreplot -- Score and loading plots

Syntax

Plot score variables

scoreplot [, scoreplot_options]

Plot the loadings (factors, components, or discriminant functions)

loadingplot [, loadingplot_options]

scoreplot_options description ------------------------------------------------------------------------- Main factors(#) number of factors/scores to be plotted; default is factors(2) components(#) synonym for factors() norotated use unrotated factors or scores, even if rotated results exist matrix graph as a matrix plot, available only when factor(2) is specified; default is a scatterplot combined graph as a combined plot, available when factor(# > 2); default is a matrix plot graph_matrix_options affect the rendition of the matrix graph combine_options affect the rendition of the combined graph scoreopt(predict_opts) options for predict generating score variables marker_options change look of markers (color, size, etc.) marker_label_options change look or position of marker labels

Y axis, X axis, Titles, Overall twoway_options any options other than by() documented in [G] twoway_options -------------------------------------------------------------------------

loadingplot_options description ------------------------------------------------------------------------- Main factors(#) number of factors/scores to be plotted; default is factors(2) components(#) synonym for factors() norotated use unrotated factors or scores, even if rotated results exist matrix graph as a matrix plot, available only when factor(2) is specified; default is a scatterplot combined graph as a combined plot, available when factor(# > 2); default is a matrix plot graph_matrix_options affect the rendition of the matrix graph combine_options affect the rendition of the combined graph maxlength(#) abbreviate variable names to # characters; default is maxlength(12) marker_options change look of markers (color, size, etc.) marker_label_options change look or position of marker labels

Y axis, X axis, Titles, Overall twoway_options any options other than by() documented in [G] twoway_options -------------------------------------------------------------------------

Menu

scoreplot

Statistics > Multivariate analysis > Factor and principal component analysis > Postestimation > Score variables plot

loadingplot

Statistics > Multivariate analysis > Factor and principal component analysis > Postestimation > Loading plot

Description

scoreplot produces scatterplots of the score variables after factor, factormat, pca, or pcamat, and scatterplots of the discriminant score variables after discrim lda or candisc.

loadingplot produces scatterplots of the loadings (factors or components) after factor, factormat, pca, or pcamat, and the standardized discriminant function loadings after discrim lda or candisc.

Options

+------+ ----+ Main +-------------------------------------------------------------

factors(#) produces plots for all combination of score variables up to #. # should not exceed the number of retained factors (components or discriminant functions) and defaults to 2. components() is a synonym. No plot is produced with factors(1).

norotated uses unrotated results, even when rotated results are available. The default is to use rotated results if they are available. norotated is ignored if rotated results are not available.

matrix specifies that plots be produced using graph matrix. This is the default when three or more factors are specified. This option may not be used with combined.

combined specifies that plots be produced using graph combine. This option may not be used with matrix.

graph_matrix_options affect the rendition of the matrix plot; see [G] graph matrix.

combine_options affect the rendition of the combined plot; see [G] graph combine. combine_options may not be specified unless factors() is greater than 2.

scoreopt(predict_opts), an option used with scoreplot, specifies options for predict to generate the score variables. For example, after factor, scoreopt(bartlett) specifies that Bartlett scoring be applied.

maxlength(#), an option used with loadingplot, causes the variable names (used as point markers) to be abbreviated to # characters. The abbrev() function performs the abbreviation, and if # is less than 5, it is treated as 5.

marker_options affect the rendition of markers drawn at the plotted points, including their shape, size, color, and outline; see [G] marker_options.

marker_label_options specify if and how the markers are to be labeled; see [G] marker_label_options.

+---------------------------------+ ----+ Y axis, X axis, Titles, Overall +----------------------------------

twoway_options are any of the options documented in [G] twoway_options, excluding by(). These include options for titling the graph (see [G] title_options) and for saving the graph to disk (see [G] saving_option).

Remarks

As the number of factors() or components() increases, the graphing area for each plot gets smaller. Although the default matrix view (option matrix) may be the most natural, the combined view (option combined) displays half as many graphs. However, the combined view uses more space for the labeling of axes than the matrix view. Regardless of the choice, with many requested factors or components the graphs become too small to be of any use. In loadingplot the maxlength() option will trim the variable name marker labels that are automatically included. This may help reduce overlap when multiple small graphs are shown. You can go further and remove these marker labels by using the mlabel("") graph option.

Examples

Setup . sysuse auto . pca price trunk rep78 head disp gear, comp(3)

Draw loading plot . loadingplot

Draw score plot . scoreplot, mlabel(make)

Also see

Manual: [MV] scoreplot

Help: [MV] candisc, [MV] discrim lda, [MV] discrim lda postestimation, > [MV] factor, [MV] factor postestimation, [MV] pca, [MV] pca postestimation; [MV] screeplot


© Copyright 1996–2009 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index