This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(rstan) | |
require(geiger) | |
require(MCMCglmm) | |
# load data | |
data(geospiza) | |
dat <- geospiza$geospiza.data | |
# create fake sample of trees | |
tr <- drop.tip(geospiza$geospiza.tree, 'olivacea') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(rstan) | |
require(geiger) | |
require(MCMCglmm) | |
# load data | |
data(geospiza) | |
# get the inverse of the phylogenetic variance-covariance matrix | |
tr <- drop.tip(geospiza$geospiza.tree, 'olivacea') | |
invA <- solve(vcv.phylo(tr)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(ggplot2) | |
require(plyr) | |
# make toy data | |
set.seed(1) | |
dataf <- data.frame( | |
x = rnorm(100), | |
y = c(rnorm(50,-1), rnorm(50,1)), | |
cat = rep(c("A","B"), each=50) | |
) |
OlderNewer