# Two-sex demographic models in R

[This article was first published on

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Tom Miller (a prof here at Rice) and Brian Inouye have a paper out in Ecology (paper, appendices) that confronts two-sex models of dispersal with empirical data.**Recology**, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

They conducted the first confrontation of two-sex demographic models with empirical data on lab populations of bean beetles

*Callosobruchus*.

Their R code for the modeling work is available at Ecological Archives (link here).

Here is a figure made from running the five blocks of code in ‘Miller_and_Inouye_figures.txt’ that reproduces Fig. 4 (A-E) in their Ecology paper (p = proportion female, Nt = density). Nice!

A: Saturating density dependence

B: Over-compensatory density dependence

C: Sex-specific gamma’s (but bM=bF=0.5)

D: Sex-specific b’s (but gammaM=gammaF=1)

E: Sex-specific b’s (but gammaM=gammaF=2)

To

**leave a comment**for the author, please follow the link and comment on their blog:**Recology**.R-bloggers.com offers

**daily e-mail updates**about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.

Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.