------------------------------------------------------------------------------- help forcprplots,acprplots-------------------------------------------------------------------------------

Graph (augmented) component-plus-residual plots in a single image

cprplots[varlist] [,rlopts(cline_options)lowesslsopts(lowess_options)msplinemsopts(mspline_options)scatter_optionscombine_options]

acprplots[varlist] [,rlopts(cline_options)lowesslsopts(lowess_options)msplinemsopts(mspline_options)scatter_optionscombine_options]

cprplotsandacprplotsare for use afterregressandanova; see help regress and anova.

Description

cprplotsgraphs component-plus-residual plots (a.k.a. partial residual plots) for the specified variables in a single image.acprplotsgraphs the augmented component-plus-residual plots. The variables invarlistmust be independent variables that are currently in the model. Ifvarlistis omitted, all independent variables in the model are used.

cprplotsandacprplotsare implemented as wrappers forcprplotandacprplot(see help cprplot).

Options

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

lowessadds a lowess smooth of the plotted points in order to assist in detecting nonlinearities.

lsopts(lowess_options)affect the rendition of the lowess smooth; see help twoway_lowess. Specifyinglsopts()implies thelowessoption.

msplineadds a median spline of the plotted points in order to assist in detecting nonlinearities.

msopts(mspline_options)affect the rendition of the median spline smooth; see help twoway_mspline. Specifyingmsopts()implies themsplineoption.

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

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

Examples

. regress price weight mpg. cprplots. acprplots

AuthorBen Jann, ETH Zurich, jann@soz.gess.ethz.ch

Also seeManual:

[R] regress,[R] regression diagnostics