Smoothing including lowess for circular data, x variable circular
circxlowess yvar xvar [if exp] [in range] [ , pad(#) lowess_options ]
Description
circxlowess carries out smoothing (including lowess) of a y variable yvar (specified first in the varlist) with respect to some circular x variable xvar. xvar should take on values between 0 and 360 degrees. Smoothing is done by temporarily adding pads of repeated values at either end of the circular scale.
The kind and degree of smoothing and the rendition of the display are specified by invoking options of lowess.
Options
pad(#) specifies a pad of # degrees at each x axis end. Data less than or equal to # degrees are copied at the right end of the x axis for an interval of 360 to 360 + # degrees. Data more than 360 - # degrees are copied at the left end of the x axis for an interval of -# to 0 degrees. The default is 180, so that a full two cycles are shown.
lowess_options specify options allowed with lowess.
Examples
. circxlowess length wallasp, gen(lowess) yla(,ang(h))
Author
Nicholas J. Cox, University of Durham, U.K. n.j.cox@durham.ac.uk
Also see
On-line: help for lowess, circylowess