Learn R Programming

ellipse (version 0.2-3)

pairs.profile.nls: Profile pairs

Description

This function produces pairwise plots of profile traces, profile sketches, and ellipse approximations to confidence intervals.

Usage

## S3 method for class 'profile.nls':
pairs(x, labels = c(names(x), "Profile tau"), panel = lines, invert = TRUE, 
    plot.tau = TRUE, plot.trace = TRUE, plot.sketch = TRUE, 
	plot.ellipse = FALSE, level = 0.95, ...)

Arguments

x
An object of class profile, generally the result of the profile() function.
labels
The labels to use for each variable. These default to the variable names.
panel
The function to use to draw the sketch in each panel.
invert
Whether to swap the axes so things look better.
plot.tau
Whether to do the profile tau (profile t) plots.
plot.trace
Whether to do the profile trace plots.
plot.sketch
Whether to do the profile sketch plots.
plot.ellipse
Whether to do the ellipse approximations.
level
The nominal confidence level for the profile sketches and ellipses.
...
Other plotting parameters.

Side Effects

Produces a plot on the current device for each pair of variables in the profile object.

Details

This function implements the plots used in Bates and Watts (1988) for nonlinear regression diagnostics.

References

Bates and Watts (1988), Nonlinear Regression Analysis & its Applications.

See Also

profile, ellipse.profile, ellipse.nls

Examples

Run this code
# Plot everything for the Puromycin data
 library(nls)
 data(Puromycin)
 Purboth <- nls(formula = rate ~ ((Vm + delV * (state == "treated"))
   * conc)/(K + conc), data = Puromycin,
   start = list(Vm = 160, delV = 40, K = 0.05))
 Pur.prof <- profile(Purboth)
 pairs(Pur.prof, plot.ellipse = TRUE)

Run the code above in your browser using DataLab