CollocInferPlots {CollocInfer}R Documentation

Diagnostic PLots for CollocInfer

Description

Diagnostic Plots on the Results of CollocInfer

Usage

CollocInferPlots(coefs,pars,lik,proc,times=NULL,data=NULL,
      cols=NULL,datacols=NULL,datanames=NULL,ObsPlot=TRUE,DerivPlot=TRUE,
      DerivResid=TRUE,newplot=FALSE,cex.axis=1.5,cex.lab=1.5,cex=1.5,lwd=2)

Arguments

coefs

Vector giving the current estimate of the coefficients.

pars

Vector of estimated parameters.

lik

lik object defining the observation process.

proc

proc object defining the state process.

times

Vector observation times for the data.

data

Matrix of observed data values.

cols

Optional vector specifying a color for each state variable.

datacols

Optional vector specifying a color for each observation dimension.

datanames

Optional character vector specifying a glyph to plot the data. Taken from the column-names of data if not given.

ObsPlot

Should a plot of predictions and observations be given?

DerivPlot

Should derivative diagnostics be produced?

DerivResid

Should a plot of the difference between Dx and f(x) be produced?

newplot

Should plots be opened in new devices? Note if this is FALSE, DerivePlot will overwrite ObsPlot.

cex.axis

Axis font size.

cex.lab

Label font size.

cex

Plotting point font size

lwd

Plotting line width

Details

Timevec is taken to be the quadrature values. Three plots can be produced:

If ObsPlot=TRUE a plot is given of the predicted values of the observations along with the observations themselves (if given).

If DerivPlot=TRUE two plots are produced. The first gives the value of the derivative of the estimated trajectory (dashed) and the value of the right-hand-side of the ordinary differential equation in proc (hence the predicted derivative) (solid). The second plot gives their difference in the first panel as well as the estimated trajectory in the second panel.

Value

A list containing elements used in plotting:

timevec

Times at which the trajectories etc were evaluated.

traj

Estimated value of the trajectory.

dtraj

Derivative of the estimated trajectory.

ftraj

Value of the derivative of the trajectory predicted by proc

otraj

Predicted values of the observations from lik.


[Package CollocInfer version 1.0.4 Index]