Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

autoplot.dynrTaste

The ggplot of the outliers estimates.


Description

The ggplot of the outliers estimates.

Usage

## S3 method for class 'dynrTaste'
autoplot(object, numSubjDemo = 2, idtoPlot = NULL,
  names.state = NULL, names.observed = NULL, ...)

Arguments

object

A dynrTaste object.

numSubjDemo

The number of subjects, who have largest joint chi-square statistic, to be selected for plotting.

idtoPlot

Values of the ID variable to plot.

names.state

(optional) The names of the states to be plotted, which should be a subset of the state.names slot of the measurement slot of dynrModel. If NULL, the t statistic plots for all state variables will be included.

names.observed

(optional) The names of the observed variables to be plotted, which should be a subset of the obs.names slot of the measurement slot of dynrModel. If NULL, the t statistic plots for all observed variables will be included.

...

Place holder for other arguments. Please do not use.

Value

a list of ggplot objects for each ID. The plots of chi-square statistics (joint and independent), and the plots of t statistic for names.state and names.observed will be included. Users can modify the ggplot objects using ggplot grammar. If a filename is provided, a pdf of plots will be saved additionally.


dynr

Dynamic Models with Regime-Switching

v0.1.16-2
GPL-3
Authors
Lu Ou [aut], Michael D. Hunter [aut, cre] (<https://orcid.org/0000-0002-3651-6709>), Sy-Miin Chow [aut] (<https://orcid.org/0000-0003-1938-027X>), Linying Ji [aut], Meng Chen [aut], Hui-Ju Hung [aut], Jungmin Lee [aut], Yanling Li [aut], Jonathan Park [aut], Massachusetts Institute of Technology [cph], S. G. Johnson [cph], Benoit Scherrer [cph], Dieter Kraft [cph]
Initial release
2021-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.