fitted.cv_poisson_rt | R Documentation |
Fitted cv_poisson_rt
## S3 method for class 'cv_poisson_rt'
fitted(object, which_lambda = c("lambda.min", "lambda.1se"), ...)
object |
result of cross validation of type |
which_lambda |
select which Rt's to output. If not provided, all Rt's are returned. If provided a list of lambda,the corresponding Rt estimation will be returned. If provided a string, it must be either one of
|
... |
not used. |
Rt's estimated from provided lambda
y <- c(1, rpois(100, dnorm(1:100, 50, 15) * 500 + 1))
cv <- cv_estimate_rt(y, korder = 3, nfold = 3, nsol = 30)
f <- fitted(cv)
f <- fitted(cv, which_lambda = cv$lambda[1])
f <- fitted(cv, which_lambda = "lambda.1se")
f <- fitted(cv, which_lambda = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.