Plots of observed versus fitted values after model fit
ovfplot [, scatter_options plot(plot) ]
ovfplot plots observed versus fitted or predicted values for the response from an immediately previous regress or similar command, with a line of equality superimposed.
In more technical detail: ovfplot 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.
The plot is restricted to the estimation sample.
scatter_options are options of twoway scatter. Note also that the presentation of the line of equality observed = fitted can be tuned by using the options clstyle(), clpattern(), clwidth() and clcolor().
plot(plot) provides a way to add other plots to the generated graph; see plot_option.
. sysuse auto
. regress mpg weight . ovfplot . gen weightsq = weight^2 . regress mpg weight weightsq . ovfplot
. glm mpg weight foreign, link(log) . ovfplot, by(foreign)
Nicholas J. Cox, University of Durham, U.K. email@example.com
On-line: help for predict, scatter, modeldiag