-
Flotsam 15: inference
Before I lose the link—as I’m deleting toots & tweets two weeks after I post the—I should save the address for “Introduction to Modern Causal Inference” by Alejandro Schuler and Mark van der Laan. It is a book draft that looks quite readable. Also love Xanthe Tynehorne, Esq.’s Compendium of Curious Words. Weird enough to […]
-
Creating an n x n autocorrelation matrix
Between covid-19 news and announcements of imminent Russia-Ukraine wars I needed a bit of a distraction. Sooo, here it is how to create an n x n autocorrelation matrix based on a correlation rho, with a simple 5 x 5 example in R: This produces the following output: [,1] [,2] [,3] [,4] [,5] [1,] 1.0000 […]
-
The beauty of code vectorisation
I came across this problem in Twitter: The basic pieces of the problem are:
-
Implementing a model as an R package
In our research group we often have people creating statistical models that end up in publications but, most of the time, the practical implementation of those models is lacking. I mean, we have a bunch of barely functioning code that is very difficult to use in a reliable way in operations of the breeding programs. […]
-
From character to numeric pedigrees
In quantitative genetic analyses we often use a pedigree to represent the relatedness between individuals, so this is accounted in the analyses, because the observations are not independent of each other. Often this pedigree contains alphanumeric labels, and most software can cope with that. Sometimes, though, we want to use numeric identities because we would […]