plres.nls2 - Plot an nls2 Object for Studying the Residuals
On to:
DESCRIPTION
USAGE
REQUIRED-ARGUMENTS
OPTIONAL-ARGUMENTS
CONSTRAINTS
DETAILS
SEE-ALSO
EXAMPLE
DESCRIPTION:
Plot the components of an `nls2.object'
that may be help the study of the residuals.
USAGE:
plres.nls2(nls2.object,
step=nls2.object$nb.steps,
wanted=list(F.R=T, R.R=T, I.R=F, X.R=F, V.R2=F),
absolute=F, st=F, smooth=F,
labels=NULL, title="", figs=c(2, 2),
ask.pause=T, ask.modify=F, ...)
REQUIRED ARGUMENTS:
- nls2.object
-
an object of class `nls2'.
OPTIONAL ARGUMENTS:
- step
-
when the nls2.object has been created by an alternated method of estimation,
the index of the step requested.
By default, the last step.
- wanted
-
a list that specifies the graphs requested;
Its components are logics that should be TRUE if the corresponding
graphs are requested.
"wanted" components and their meanings are:
F.R: the residuals are plotted against
the fitted values of the response.
R.R: the residuals are plotted against
the immediatly preceding residuals:
residuals(i) against residuals(i-1).
I.R: the residuals are plotted against
their indexes:
residuals(i) against i.
X.R: the residuals are plotted against
the independent variables.
V.R2: the squared residuals are plotted against
the fitted values of the variance.
This option is ignored when the argument `st' is TRUE.
- absolute
-
a logic that should be TRUE if
the absolute values of the residuals are to be added
on the graphs corresponding to
F.R, I.R and X.R.
- st
-
a logic that should be TRUE if
the standardized residuals
are to be plotted rather than the residuals.
- smooth
-
a logic that should be TRUE if the points of the observed
values are to be joined. If so, they are joined by a dotted line after smoothing.
-
labels,title,figs,ask.pause,ask.modify,...
-
See `pldnls2'.
CONSTRAINTS:
- A graphical device should have been previously activated.
`nls2.object' should contain intermediate results:
the "it.steps" option should have been set in the control
argument of the command that created the object.
(See `nls2.control', argument `it.steps'.)
- The data frame containing the observations must be available,
(its name is nls2.object$call$data).
It is then assumed that this data frame has been neither deleted nor
modified since the nls2.object was created.
DETAILS:
This function is a method for the generic function `plres'
for class `nls2'.
It can be invoked by calling `plres' for an object of the appropriate
class, or directly by calling `plres.nls2' regardless of the
class of the object.
SEE ALSO:
EXAMPLE:
X11()
plres(nls2.out, wanted=list(R.R=T), st=T, figs=c(3,3))
- Mon Sep 30 1996 -