lagHistogram {accrued} | R Documentation |
Creates a column of histograms, the ith histogram showing the distribution of completeness of data i-1 days after the encounter date.
lagHistogram(x, maxLagPlot=NULL, ...)
x |
Object of the |
maxLagPlot |
Optional argument specifying the maximum accrual lag reprented in the plot. |
... |
Parameters to pass to |
This function shows a complete summary of the completeness of the data by lag. The ith row of the column shows a histogram of the completion percent at i-1 days after the encounter date (so that the x-axis represents the completeness proportion in blocks of 0.1). Note that this function should only be used on count data.
None.
Julie Eaton and Ian Painter
plot.summary.accrued
displays the mean completion rate for each lag.
library(grid) data(accruedDataExample) dat <- data.accrued(accruedDataExample) lagHistogram(dat, maxLagPlot=7)