tscsPlot {Amelia}R Documentation

Plot observed and imputed time-series for a single cross-section

Description

Plots a time series for a given variable in a given cross-section and provides confidence intervals for the imputed values.

Usage

tscsPlot(output, var, cs, draws = 100, conf = .90,
         misscol = "red", obscol = "black", xlab, ylab, main,
         pch, ylim, xlim, ...)

Arguments

output output from the function amelia.
var the column number or variable name of the variable to plot.
cs the name of the cross-section to plot.
draws the number of imputations on which to base the confidence intervals.
conf the confidence level of the confidence intervals to plot for the imputated values.
misscol the color of the imputed values and their confidence intervals.
obscol the color of the points for observed units.
xlab,ylab,main,pch,ylim,xlim various graphical parameters.
... further graphical parameters for the plot.

Details

The cs argument should be a value from the variable set to the cs argument in the amelia function for this output. This function will not work if the ts and cs arguments were not set in the amelia function.


[Package Amelia version 1.2-2 Index]