plotctACF | R Documentation |
Plot an approximate continuous-time ACF object from ctACF
plotctACF(
ctacfobj,
df = "auto",
quantiles = c(0.025, 0.5, 0.975),
separateLearnRates = FALSE,
reducedXlim = 1,
estimateSpline = TRUE
)
ctacfobj |
object |
df |
df for the basis spline. |
quantiles |
quantiles to plot. |
separateLearnRates |
if TRUE, estimate the learning rate for the quantile splines for each combination of variables. Slower but theoretically more accurate. |
reducedXlim |
if non-zero, n timesteps are removed from the upper and lower end of the x range where the spline estimates are less likely to be reasonable. |
estimateSpline |
if TRUE, quantile spline regression is used, otherwise the samples are simply plotted as lines and the other arguments here are not used. |
a ggplot object
data.table::setDTthreads(1) #ignore this line
# Example usage:
head(ctstantestdat)
ac=ctACF(ctstantestdat,varnames=c('Y1'),idcol='id',timecol='time',timestep=.5,nboot=5,plot=FALSE)
plotctACF(ac, reducedXlim=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.