plot.cusp: Graphical Diagnostic Display of Cusp Catastrophe Data Fit

Description Usage Arguments Author(s) References See Also Examples

Description

This function generates diagnostic graphical displays of fits of a cusp catastrophe model to data obtained with cusp

Usage

1
2
## S3 method for class 'cusp'
plot(x, what = c("all", "bifurcation", "residual", "densities"), ...)

Arguments

x

Object returned by cusp

what

1-character string giving the type of plot desired. The following values are possible: "all" for a panel plot with all diagnostic plots, "bifurcation" for a plot of the bifurcation surface with estimated control parameter locations superimposed, "residual" for a plot of the residuals against fitted values, "densities" for a plot of density estimates conditioned on the estimated location on the bifurcation surface.

...

named arguments that are passed to lower level plotting function

Author(s)

Raoul Grasman

References

See cusp-package

See Also

plotCuspBifurcation, plotCuspResidfitted, plotCuspDensities

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
set.seed(20)
x1 = runif(150)
x2 = runif(150)
z = Vectorize(rcusp)(1, 4*x1-2, 4*x2-1)
data <- data.frame(x1, x2, z)
fit <- cusp(y ~ z, alpha ~ x1+x2, beta ~ x1+x2, data)
## Not run: 
plot(fit)

# just densities
layout(matrix(1:4,2))
plot(fit, what="densities")

## End(Not run)

Example output



cusp documentation built on May 2, 2019, 6:51 p.m.