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
#!/usr/bin/env python | |
import sys | |
import subprocess | |
case = int(sys.argv[1]) | |
queue = "all.q" | |
jobName = "test%i" % case | |
cmd = "echo %i; date; sleep 2; date" % case | |
echoArgs = ["echo", "-e", "'%s'" % cmd] |
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
## Goal of this document: learn how to use various R packages to perform | |
## Bayesian inference via sampling | |
## Author: Timothée Flutre (INRA) | |
## I. Model | |
## sub-section: details about Ga and InvGa distributions | |
## II. Simulations | |
## III. Inference via sampling | |
## III.1 Fit with OpenBUGS (many explanations) | |
## sub-section: detailed diagnostics with "coda" and "mcmcse" |
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
## Model: a specific kind of linear mixed model known as "animal model" by geneticists | |
## y = mu 1_N + X b + Z u + e = W a + Z u + e | |
## y is N x 1; X is N x P; Z is N x Q; W is N x (P+1) | |
## u ~ Norm_Q(0, sigma_u^2 A); e ~ Norm_N(0, sigma^2 I_N) | |
## Goal of this document: estimate the variance components sigma_u^2 and sigma^2 | |
## 1) simulate some data | |
## 2) fit the model above using the package rrBLUP (v4.3, on CRAN) | |
## 3) fit the model above using lme4 (v1.7, on CRAN) | |
## Author: Timothée Flutre (INRA) |