Stata 15 help for cumsp

[TS] cumsp -- Graph cumulative spectral distribution


cumsp varname [if] [in] [, options]

options Description ------------------------------------------------------------------------- Main generate(newvar) create newvar holding distribution values

Plot cline_options affect rendition of the plotted points connected by lines marker_options change look of markers (color, size, etc.) marker_label_options add marker labels; change look or position

Add plots addplot(plot) add other plots to the generated graph

Y axis, X axis, Titles, Legend, Overall twoway_options any options other than by() documented in [G-3] twoway_options ------------------------------------------------------------------------- You must tsset your data before using cumsp; see [TS] tsset. Also, the time series must be dense (nonmissing and no gaps in the time variable) in the sample specified. varname may contain time-series operators; see tsvarlist.


Statistics > Time series > Graphs > Cumulative spectral distribution


cumsp plots the cumulative sample spectral-distribution function evaluated at the natural frequencies for a (dense) time series.


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

generate(newvar) specifies a new variable to contain the estimated cumulative spectral-distribution values.

+------+ ----+ Plot +-------------------------------------------------------------

cline_options affect the rendition of the plotted points connected by lines; see [G-3] cline_options.

marker_options specify the look of markers. This look includes the marker symbol, the marker size, and its color and outline; see [G-3] marker_options.

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

+-----------+ ----+ Add plots +--------------------------------------------------------

addplot(plot) provides a way to add other plots to the generated graph; see [G-3] addplot_option.

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

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


Setup . webuse air2

Plot cumulative sample spectral distribution function with vertical line at frequency 1/12 . cumsp air, xline(.083333333)

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