R0 = estimate.R(germany_vect, mGT, begin=germany_vect[1],
end=germany_vect[length(germany_vect)], methods="EG", pop.size=pop_de,
nsim=100)

Error in begin.nb:end.nb : argument of length 0

germany_vect[1]
  1
184
germany_vect[length(germany_vect)]
 57
488

```
What might be the problem here?

begin = germany_vect[1]
So begin = 184

but do you not want begin = 1

and same for end?

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to