DiagPlot | R Documentation |
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.
DiagPlot( windowsweep, type = c("smooth", "flat")[1], plotme = TRUE, values = FALSE, ... )
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 |
If values
is TRUE, returns the values of the standardized residuals.
Eliezer Gurarie
PartitionParameters
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.