Hello, can anyone tell me if R has any special function for simulating the structure of human populations? Something like the genetic algorithm? I need to simulate a sample of a population with a specific structure. Is there something on R that can help me? Thanks to everyone. __________________________________________________________
assuncao.senra at portugalmail.com wrote:> > Hello, > > can anyone tell me if R has any special function for simulating the structure > of human populations? Something like the genetic algorithm? > I need to simulate a sample of a population with a specific structure. Is > there something on R that can help me?Please be more specific, what you want: What type of model or which state variables do you want to simulate? Differential equations, age stucture (Leslie matrix model) discrete event simulations of stochastic subsamples (individuals) ... BTW genetic algorithms are commonly used to solve optimization problems and (at least in most cases) not for population models. Thomas P.
Unless your problem is so trivial it could easily be done in Excel, R may well be the best platform available for such simulations, with its object orientation, class definitions, etc. However, as Thomas just said, we would need more information to be able to help further. Have you contacted a listserve with the Bioconductor project (http://www.bioconductor.org/)? That uses R and is specifically devoted to bio-whatever. You might find help there that is more closely connected to your interests. hope this helps. spencer graves p.s. PLEASE do read the posting guide! "http://www.R-project.org/posting-guide.html". It could help you formulate your question so you get a better response. Thomas Petzoldt wrote:> assuncao.senra at portugalmail.com wrote: > >> >> Hello, >> >> can anyone tell me if R has any special function for simulating the >> structure of human populations? Something like the genetic algorithm? >> I need to simulate a sample of a population with a specific >> structure. Is there something on R that can help me? > > > Please be more specific, what you want: What type of model or which > state variables do you want to simulate? Differential equations, age > stucture (Leslie matrix model) discrete event simulations of > stochastic subsamples (individuals) ... > > BTW genetic algorithms are commonly used to solve optimization > problems and (at least in most cases) not for population models. > > Thomas P. > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html
assuncao.senra at portugalmail.com wrote: > > Hello, > > can anyone tell me if R has any special function for simulating the structure > of human populations? Something like the genetic algorithm? > I need to simulate a sample of a population with a specific structure. Is > there something on R that can help me? > As others have pointed out, you need to give us some more details. There is an artile about simulation of ecological dynamics in last December's R News, which may be of some help: <http://cran.r-project.org/doc/Rnews/Rnews_2003-3.pdf> If you're simulating something like a coalescence process, then it might be easier to use some specialist software. In that case, googling with a few relevant terms might be the way to go. Bob -- Bob O'Hara Dept. of Mathematics and Statistics P.O. Box 68 (Gustaf H??llstr??min katu 2b) FIN-00014 University of Helsinki Finland Telephone: +358-9-191 51479 Mobile: +358 50 599 0540 Fax: +358-9-191 51400 WWW: http://www.RNI.Helsinki.FI/~boh/ Journal of Negative Results - EEB: http://www.jnr-eeb.org