plot: Plot an ARpCRM or ARtpCRM object

plotR Documentation

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 class 'ARpCRM'
plot(x, ...)
  
  ## S3 method for class 'ARtpCRM'
plot(x, ...)

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.

Value

A ggplot object.

Author(s)

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

See Also

ggplot, ARCensReg, ARtCensReg

Examples

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)

ARCensReg documentation built on Aug. 30, 2023, 1:09 a.m.