Learn R Programming

ARCensReg (version 3.0.1)

plot: Plot an ARpCRM or ARtpCRM object

Description

It displays convergence graphs for the parameters estimates (for the case with at least one censored observation). The dashed line indicates the iteration of the SAEM algorithm that simulations start being smoothed.

Usage

# S3 method for ARpCRM
plot(x, ...)
  
  # S3 method for ARtpCRM
plot(x, ...)

Value

A ggplot object.

Arguments

x

An object inheriting from class ARpCRM or ARtpCRM, representing a fitted censored autoregressive model of order \(p\), with normal and Student-t innovations, respectively.

...

Additional arguments.

Author

Fernanda L. Schumacher, Katherine L. Valeriano, Victor H. Lachos, Christian E. Galarza, and Larissa A. Matos

See Also

ggplot, ARCensReg, ARtCensReg

Examples

Run this code
n = 50; x = rep(1, n)
dat = rARCens(n=n, beta=2, phi=.5, sig2=.3, x=x, cens='left', pcens=.1)

fit = ARCensReg(dat$data$cc, dat$data$lcl, dat$data$ucl, dat$data$y, x,
                M=5, pc=.12, tol=0.001, show_se=FALSE)
plot(fit)

Run the code above in your browser using DataLab