Re: [R] simulating a model

2009-09-26 Thread Thomas Petzoldt
Dear Rafael, first of all, your simulation works, at least in a technical sense, so I don't understand what you mean with can't simulate it properly. Second, your SIR-based model is a quite different from the SIR models I know (e.g. http://en.wikipedia.org/wiki/SIR_Model). The R code,

[R] simulating a model

2009-09-24 Thread Rafael Moral
Dear useRs, I have written an ecological model, based on the epidemiology SIR model. I've been trying to simulate it in R. However, I can't simulate it properly. Two guesses: my script isn't right; I'm not setting the parameters properly I have uploaded an image to the model here: