Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

README.md

sexual.selection

R code and example data for calculating the strength of sexual selection and remaining selection at both the phenotypic and quantitative genetic levels, as detailed in the paper:

Henshaw JM, Jennions MD, Kruuk LEB (2018). How to quantify (the response to) sexual selection on traits. Evolution.

Requires the free package lavaan and the commercial package ASReml-R (the latter only for calculating additive genetic (co)variances for use in the quantitative genetic model).

Contents

FatSexyFecund-Code.R

R code for the worked example 'Fat, sexy and fecund' from the main text (see also the associated data file)

FatSexyFecund-Data.csv

Data for the worked example 'Fat, sexy and fecund'

Pipefish-Code.R

R code for the worked example 'Size selection in male pipefish' from the main text (see also the associated data file)

Pipefish-Data.csv

Data for the worked example 'Size selection in male pipefish'. Many thanks to Kenyon Mobley and Adam Jones for generously sharing this data (see main text for references to the original publications).

CheatingVsCaring-Code.R

R code for the worked example 'Cheating vs caring' from the Supporting Information (see also the associated pedigree and trait data files). The code for estimating additive genetic (co)variances requires the commercial package ASReml-R. The rest of the code requires only freely available packages.

CheatingVsCaring-RelTraitData.csv

Trait data for the worked example 'Cheating vs caring'

CheatingVsCaring-Pedigree.csv

Pedigree data for the worked example 'Cheating vs caring'

All code and data except the pipefish data are copyright (c) 2018 Jonathan M. Henshaw and Loeske E. B. Kruuk

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.