DiagPlot {bcpa} | R Documentation |
Diagnostic plot for BCPA
Description
Draws diagnostic plots for BCPA analysis. Specifically: a qqplot, a histogram (with a N(0,1) density curve), and an acf of the standardized residuals of an analysis.
Usage
DiagPlot(
windowsweep,
type = c("smooth", "flat")[1],
plotme = TRUE,
values = FALSE,
...
)
Arguments
windowsweep |
a |
type |
whether to diagnose the model fitted for a smooth or flat BCPA. |
plotme |
logical - whether or not to plot the diagnostics |
values |
logical - whether or not to return the values of the standardized residuals. |
... |
additional arguments to pass to the |
Value
If values
is TRUE, returns the values of the standardized residuals.
Author(s)
Eliezer Gurarie
See Also
Examples
data(Simp)
if(!exists("Simp.VT"))
Simp.VT <- GetVT(Simp)
if(!exists("Simp.ws"))
Simp.ws <- WindowSweep(Simp.VT, "V*cos(Theta)", windowsize = 50, windowstep = 1, progress=TRUE)
DiagPlot(Simp.ws)
DiagPlot(Simp.ws, type="flat")
# The Simp's diagnostic plots are excellent.
[Package bcpa version 1.3.2 Index]