Skip to content

Instantly share code, notes, and snippets.

View maxbiostat's full-sized avatar

Luiz Max Carvalho maxbiostat

View GitHub Profile
@crivotz
crivotz / xorg.conf
Created August 3, 2015 10:43
Xorg.conf for dual monitor
Section "ServerLayout"
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
Screen "aticonfig-Screen[0]-1" RightOf "aticonfig-Screen[0]-0"
EndSection
Section "Module"
EndSection
Section "ServerFlags"
@mbjoseph
mbjoseph / bivar_pois.R
Last active September 2, 2018 18:12
Initial pass at a bivariate Poisson model in Stan
## Simple bivariate Poisson model in stan
## following parameterization in Karlis and Ntzoufras 2003
## Simulate data
n <- 50
# indpendent Poisson components
theta <- c(2, 3, 1)
X_i <- array(dim=c(n, 3))
for (i in 1:3){
# io
fp = "./"
fn = fp + "prior_timetree.txt"
# make a tree variable
n_tips = 10
for (i in 1:n_tips) { names[i] = "T"+i }
t ~ dnUniformTimeTree(originTime=1.0, taxonNames=names)
# create a vector of moves