plot.cv_poisson_rt {rtestim} | R Documentation |
Plot cv_poisson_rt
Description
Plot cv_poisson_rt
Usage
## S3 method for class 'cv_poisson_rt'
plot(x, which_lambda = c("cv_scores", "lambda.min", "lambda.1se"), ...)
Arguments
x |
result of cv_estimate_rt of class |
which_lambda |
select which Rt's to plot. If not provided, the cross validation score will be plotted. If provided a list of lambda, the corresponding Rt estimation will be plotted. If provided a string, it
must be either one of
|
... |
Not used. |
Value
Examples
y <- c(1, rpois(100, dnorm(1:100, 50, 15) * 500 + 1))
cv <- cv_estimate_rt(y, korder = 1, nfold = 3, nsol = 30)
plot(cv)
plot(cv, which_lambda = cv$lambda[1])
plot(cv, which_lambda = "lambda.min")
plot(cv, which_lambda = "lambda.1se")
plot(cv, NULL)
[Package rtestim version 1.0.0 Index]