DiagPlot: Diagnostic plot for BCPA

Description Usage Arguments Value Author(s) See Also Examples

View source: R/DiagPlot.r

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

1
2
DiagPlot(windowsweep, type = c("smooth", "flat")[1], plotme = TRUE,
  values = FALSE, ...)

Arguments

windowsweep

a windowsweep object, i.e. the output of the WindowSweep analysis.

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 PartitionParameters function.

Value

If values is TRUE, returnn the values of the standardized residuals.

Author(s)

Eliezer Gurarie

See Also

PartitionParameters

Examples

1
2
3
4
5
6
7
8
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.

Example output

Loading required package: Rcpp
Loading required package: plyr

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |=====                                                                 |   7%
  |                                                                            
  |=========                                                             |  14%
  |                                                                            
  |==============                                                        |  20%
  |                                                                            
  |===================                                                   |  27%
  |                                                                            
  |========================                                              |  34%
  |                                                                            
  |============================                                          |  41%
  |                                                                            
  |=================================                                     |  47%
  |                                                                            
  |======================================                                |  54%
  |                                                                            
  |===========================================                           |  61%
  |                                                                            
  |===============================================                       |  68%
  |                                                                            
  |====================================================                  |  74%
  |                                                                            
  |=========================================================             |  81%
  |                                                                            
  |=============================================================         |  88%
  |                                                                            
  |==================================================================    |  95%

bcpa documentation built on May 1, 2019, 10:30 p.m.