.- help for ^yrxlab^ (STB-26: dm34) .- Construct an xlabel() option for dates -------------------------------------- ^yrxlab^ varlist [^if^ exp] [^in^ range] [ ^,^ ^s^tep^(^#^)^ ^y^ear^(^varname^)^ ] Description ----------- ^yrxlab^ constructs an ^xlabel()^ option for date values and stores the result in S_1. ^yrxlab^ determines the minimum and maximum values of the ^year()^ variable for which there are non-missing observations in any of the variables in the ^varlist^. The ^xlabel()^ option labels these extremes and every ^step()^-th value between them. Note that ^yrxlab^ is designed to work with dates encoded as numeric variables. Stata has other facilities for labeling Stata elapsed date variables. Options ------- ^step(^#^)^ specifies the interval between labeled values. The default is 1. ^year(^varname^)^ specifies the date variable. The default is "^year^". Author ------ Sean Becketti Stata Technical Bulletin EMAIL: stb@@stata.com Also see -------- STB: STB-26 dm34