tscsPlot {Amelia} | R Documentation |
Plots a time series for a given variable in a given cross-section and provides confidence intervals for the imputed values.
tscsPlot(output, var, cs, draws = 100, conf = .90, misscol = "red", obscol = "black", xlab, ylab, main, pch, ylim, xlim, ...)
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. |
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.