Hello,
i'm a beginner and not able to export the full result of a command.
I'm trying to estimate an Ro of the current epidemic.
So, here an example
library(R0)
epid.count = c(1,1,4,5,8,12,27,38,43,52,66,100)
GT.x <- generation.time("gamma", c(2,1.5))
res.R <- estimate.R(epid.count, GT=GT.x, methods=c("EG","ML","SB","TD"))
print(res.R)
At this point I'm not able to see all the results.
Reproduction number estimate using Exponential Growth method.
R : 2.287246[ 2.086577 , 2.512827 ]
Reproduction number estimate using Maximum Likelihood method.
R : 1.885677[ 1.622073 , 2.176419 ]
Reproduction number estimate using Time-Dependent method.
3.486779 3.811135 2.458036 2.446274 2.48364 2.521225 1.95077 1.647686 1.631888 1.721446 ...Here Stops
Reproduction number estimate using Sequential Bayesian method.
1 3.05 2.14 2.1 2.02 2.36 2.1 1.81 1.7 1.66 ... Here Stops
I tried to export the results but I can see only wht is already displayed in the Console:
cat("Tests Output", file = "tests.txt")
capture.output(res.R, file = "tests.txt", append = TRUE)
Thanks for your help!