help favplot/favplots

Formatted added-variable plot(s)

Syntax

favplot predictor [, favplot_options formatting_options]

favplots [, favplots_options formatting_options]

Description

favplot graphs an added-variable plot (a.k.a. partial-regression
leverage plot, partial regression plot, or adjusted partial residual
plot) after regress. predictor may be a predictor variable
(a.k.a. explanatory variable, covariate, independent variable) that is currently in the
model or not.

favplots graphs all the added-variable plots in a single image.

These commands differ from official commands avplot and
avplots only in presentation, including the ability to control the
formats of coefficient estimates and t statistics.

Options for favplot

rlopts(cline_options) affect the rendition of the reference line. See
cline_options.

addplot(plot) provides a way to add other plots to the generated graph.
See addplot_option.

twoway_options are any of the options documented in
twoway_options, excluding by(). These include the options
for titling the graph (see title_options) and options for saving
the graph to disk (see saving_option).

Options for favplots

combine_options are any of the options documented in
graph combine. These include options for titling the graph (see
title_options) and options for saving the graph to disk (see
saving_option).

rlopts(cline_options) affect the rendition of the reference line. See
cline_options.

Formatting options

bformat(format) controls the display format to show coefficient
(b) estimates. The default is %6.0g. See format.

tformat(format) controls the display format to show t statistics.
The default is %3.2f. See format.

vartitle(tinfo) tunes the display of the main title of each
added-variable plot, which shows the variable label (or if no label has
been assigned, the variable name} for each predictor shown. Example:
vartitle(size(*1.4)). See title_options.

tbtitle(tinfo) tunes the display of the subtitle of each
added-variable plot, which shows the t statistic and b estimate for each
indepvar shown. Example: tbtitle(size(*1.4)).
See title_options.

Examples

. sysuse auto

. regress price weight foreign##c.mpg

Added-variable plot

. favplot mpg

. favplot 1.foreign

Added-variable plots for every regressor

. favplots

. favplots, ms(Oh) yla(, ang(h))

Acknowledgments

David Airey
(https://www.stata.com/statalist/archive/2011-05/msg00613.html)
and Nikos Kakouros
(https://www.statalist.org/forums/forum/general-stata-discussion/general/1544070-graph-for-multiple-regression)
pointed out that these commands did not support factor variables.

Author

Nicholas J. Cox, Durham University

n.j.cox@durham.ac.uk

Also see

Manual: [R] regress postestimation