Inference in ecology and evolution beyond generalised linear mixed models
Reinder Radersma
- Dept. of Biology
Lund University reinder.radersma@biol.lu.se
Inference in ecology and evolution beyond generalised linear mixed - - PowerPoint PPT Presentation
Inference in ecology and evolution beyond generalised linear mixed models Reinder Radersma Dept. of Biology Lund University reinder.radersma@biol.lu.se Structure of GLMMs random effects fixed effects z 1 x 1 z 2 y x 2
Lund University reinder.radersma@biol.lu.se
data { int<lower=0> N; // number of data items int<lower=0> K; // number of predictors matrix[N, K] x; // predictor matrix vector[N] y; // outcome vector } parameters { real alpha; // intercept vector[K] beta; // coefficients for predictors real<lower=0> sigma; // error scale } model { y ~ normal(x * beta + alpha, sigma); // likelihood }
http://mc-stan.org
Carpenter, et al. 2017. Stan: A probabilistic programming language. J Stat Soft 76. DOI 10.18637/jss.v076.i01
brm(angle ~ recipe * temperature + (1 | recipe:replicate), data = cake)
Second generation First generation
Maternal phenotype Offspring phenotype
Env Geno
Nmothers = 233 Noffspring = 804 Ngenotypes= 7
Late Full Early
first generation second generation 1 2 3 4 5 6 7 −1.5 −1.0 −0.5 0.0 0.5 1.0
intercept early late intercept full early late full x early full x late
Latent Observed
Sociality
Environ ment Geno type
Nindividuals = 6,844 Npairs = 295,327 Nyears = 9
Year
Spatial
together recorded Permanent Environment
:1
Latent Observed
Nresearchers = 23,744 Nyears = 6 Publication rate
Published Visibility Age by gender Survival
Gender ratio 0.6 0.7 0.8 0.9 1.0
Observed ± 95% CI Predicted into the future ± 95% CI
A Mean publication rate
Men ± 95% CI
1.5 2.5 3.5 4.5 B Survival 0.85 0.90 0.95 1.00 C Survival difference 1 6 11 16 21 26 Age class −1 1 2 3 4 5
No covariates ± 95% CI Publication rate ± 95% CI Male−biased Female−biased
D Visibility 1 6 11 16 21 26 Age class 0.6 0.7 0.8 0.9 1.0 E Retention probability Year
2019 2024 2029 2034 2039 2044
0.4 0.6 0.8 1.0
In 2044 62.2% of men still publishing in science In 2044 44.1% of women still publishing in science
F
Lund University Tobias Uller Alexander Hegg
Dan Noble
Bernhard Voelkl
Colin Garroway
Ben Sheldon Josh Firth
Bernard Voelkl Indiana University Cassidy Sugimoto
Colin Garroway Université de Montréal Vincent Larivière
Ella Cole