Skip to contents

Provides various diagnostic plots for fitted fit_affectOU objects, including:

Usage

# S3 method for class 'fit_affectOU'
plot(x, type = c("time", "residuals", "acf", "qq"), ...)

Arguments

x

An object of class fit_affectOU

type

Type of plot; one of "time", "residuals", "acf", or "qq"

...

Additional graphical parameters passed to the specific plotting functions

Value

NULL (invisibly), called for side effects only.

Examples

model <- affectOU(theta = 0.5, mu = 0, gamma = 1)
sim <- simulate(model, stop = 500, dt = 0.01, save_at = 0.1)
data <- as.data.frame(sim)
fitted <- fit(model, data = data$value, times = data$time)
plot(fitted, type = "time")

plot(fitted, type = "residuals")

plot(fitted, type = "acf")

plot(fitted, type = "qq")