------------------------------------------------------------------------------- help forqexp-------------------------------------------------------------------------------

Quantile-quantile plot for data versus fitted exponential distribution

qexpvarname[ifexp] [inrange] [weight] [,gridparam(#)show(condition)generate(newvar)graph_options]where

graph_optionsare

rlopts(cline_options)plot(plot)scatter_optionstwoway_options

fweights,aweights andiweights are allowed; see help weights.

Description

qexpplots the quantiles ofvarnameagainst the quantiles of a one-parameter exponential distribution with probability density function for variablexof (1/m) exp(-x/m). The parametermis by default calculated as the mean of the data specified.

RemarksIn the majority of cases,

qexpwill be used to fit an exponential distribution on the fly and to assess that fit. In some cases, it may be of interest to compare data with an exponential distribution with a known or hypothesised mean, which may be specified using theparam()option. In all cases it is important not only to specify anyiforinrestrictions, but also to specify relevant weights, which will (unless constant) affect the configuration of the plot.

Options

gridadds grid lines at the .05, .10, .25, .50, .75, .90, and .95 quantiles.

param()may be used to supply a parameter value (namely, the mean) directly for use in estimation of fitted quantiles.

show()may be used to specify that you wish to restrict the graph according to some condition, say looking at one tail of the distribution only. Note thatifandinshould not be used for this purpose.

generate()specifies the name of a new variable to hold values of fitted exponential quantiles.

graph_optionsarerlopts(cline_options),plot(plot),scatter_options, andtwoway_options

rlopts(cline_options)affect the rendition of the reference line; see help cline_options.

plot(plot)provides a way to add other plots to the generated graph; see help plot_option.

scatter_optionsaffect the rendition of the plotted points; see help scatter.

twoway_optionsare any of the options documented in help twoway_options excludingby(). These include options for titling the graph (see help title_options) and options for saving the graph to disk (see help saving_option).

Examples

. qexp spacing

. qexp spacing, param(20)

. qexp spacing, gen(spacing_exp)

AuthorNicholas J. Cox, University of Durham, U.K. n.j.cox@durham.ac.uk

Also see