-------------------------------------------------------------------------------
help for ovfplot7
-------------------------------------------------------------------------------

Plots of observed vs fitted

ovfplot7 [, graph_options separate(varname) ]

Description

ovfplot7 plots observed vs fitted or predicted values for the response from an immediately previous regress or similar command, with by default a line of equality superimposed.

Remarks

In more technical detail: ovfplot7 plots a single dependent or response variable as specified in e(depvar) on the y axis and whatever single variable is calculated by the default of predict on the x axis, which makes sense whenever those variables are on the same scale.

If your estimation results do not meet these specifications, you are likely to get either bizarre results or an error message.

The plot is restricted to the estimation sample.

ovfplot7 is a renamed clone of ovfplot 2.0.0 which is for Stata 7. Stata 8 users should use ovfplot 3.0.0 or later.

Options

graph_options are options of graph, twoway.

The equality line is specified by the first symbol, by default i, of symbol(), and by the first connect specification, by default l[-], of connect(). Data points for one or more classes of the response are shown according to subsequent arguments of these options.

separate(varname) specifies that predictions are to be shown separately for different categories of varname.

Note that by(varname) may be employed as usual with ovfplot7 and it also may be combined with separate().

Examples

. use auto

. regress mpg weight

. ovfplot7

. gen weightsq = weight^2

. regress mpg weight weightsq

. ovfplot7

. glm mpg weight foreign, link(log)

. ovfplot7, sep(foreign) tr(1)

. ovfplot7, sep(foreign) sy(iop)

Author

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

Also see

On-line: help for graph, regdiag, regplot (if installed), anovaplot (if installed), sparl (if installed)