pairs.profile.nls {ellipse} | R Documentation |
This function produces pairwise plots of profile traces, profile sketches, and ellipse approximations to confidence intervals.
pairs.profile.nls(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, ...)
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. |
This function implements the plots used in Bates and Watts (1988) for nonlinear regression diagnostics.
Produces a plot on the current device for each pair of variables in the profile object.
Bates and Watts (1988), Nonlinear Regression Analysis & its Applications.
profile, ellipse.profile, ellipse.nls
# Plot everything for the Puromycin data 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)