Description Usage Arguments Value Examples
Optimize llambda (AQR) and alpha (LOESS) smoothing parameters for observed data.
1 2 | rqssoptimize(o, quant = c(0.05, 0.5, 0.95), interval = c(0, 7),
pred.correct = FALSE, ...)
|
o |
A vpcstatsobj which includes both observed and simulated data. |
quant |
A numeric vector of length three containing prediction intervals. |
interval |
Interval range for lambda optimization. |
pred.correct |
Set TRUE to return pcVPC. |
... |
Other arguments to include |
Returns a data.table in vpcstatsobj containing optimized lambda smoothing parameters for each quantile.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(data.table)
library(quantreg)
library(magrittr)
vpc <- observed(obswarfec, x=TIME, y=DV) %>%
simulated(simwarfec, y=DV) %>%
rqssoptimize(quant = c(0.1, 0.5, 0.9)) %>%
rqsssummarize() %>%
binlessplot()
pcvpc <- observed(obspheno, x=TIME, y=DV, pred = PRED) %>%
simulated(simpheno, y=DV, pred = PRED) %>%
rqssoptimize(quant = c(0.1, 0.50, 0.9), pred.correct = TRUE) %>%
rqsssummarize() %>%
binlessplot()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.