Publications by Gregor Gorjanc
Sweave.sh plays with weaver
After adding support for the cacheSweave package (see here) I have also added support for the weaver package to my Sweave.sh script. The experimental version is available here. After testing and feedback I will upload it to CRAN. One can use this new feature with the command (see previous post for the Sweave file):Sweave.sh –weaver test.RnwThis...
1153 sym 2 img
MCMCglmm package for R
Jarrod Hadfield published MCMCglmm package on CRAN. The package can fit generalised linear mixed models via MCMC methods. Bellow is the abstract from the vignette. The list of supported models is quite impressive. Nice job Jarrod! This is not the first package by Jarrod – there is also interesting (at least to me) package MasterBayes.MCMCglmm i...
2101 sym 2 img
Fitting Legendre (orthogonal) polynomials in R
Frederick Novomestky packaged a series of orthogonal polynomials in the orthopolynom R package. However, his functions can not be used “directly” in a statistical model, say in lm(). There is no need to use functions from orthopolynom package, since there is a poly() function in stats package that is shipped with R. Nevertheless, I played wit...
1951 sym R (1003 sym/2 pcs) 2 img
R in SAS
Another “proof” that R definitely is one of mainstream statistical packages is the news that SAS will provide an interface to R via SAS/IML Studio (today known as SAS Stat Studio). Related To leave a comment for the author, please follow the link and comment on their blog: Gregor Gorjanc. R-bloggers.com offers daily e-mail updates about R...
577 sym 2 img
Illinois long-term selection experiment for oil and protein in corn
Researchers at the University of Illinois are conducting one of the longest experiments in biology – Illinois long-term selection experiment for oil and protein in corn. The experiment started in 1896 and is still active! In esence they are selecting lines for higher or lower concentration of protein or oil in the kernel. This experiment is ver...
2859 sym R (575 sym/1 pcs) 4 img
R graphics: margins are way to large
For me R has a very nice and powerfull capabilities for graphics (for example see this gallery). However, I dislike the default setting for margins and placement of axis numbers and labels. Since I always forget the setting of parameters I prefer I am adding this post. For example:library(package="MASS") Sigma <- matrix(c(10, 10, 10, 20), nrow=2)...
740 sym R (329 sym/2 pcs) 4 img
Inference for R
I got a message from Inference for R team. Their work is interesting, especially if you are bound to MS Excel and Word environment! It would be great if they would also support OpenOffice. They “benefit” from open source R and it would be great if they would also provide a solution for open source “office”. Related To leave a comment fo...
710 sym
Embeding fonts in figures produced by R
Some publishers insist that we embed (include) the fonts in each figure. Here is a set of links regarding this issue for figures produced by R:http://tolstoy.newcastle.edu.au/R/help/05/01/10779.htmlhttps://stat.ethz.ch/pipermail/r-help/2006-October/114751.htmlhttps://stat.ethz.ch/pipermail/r-help/2005-April/069208.htmlhttp://tolstoy.n...
848 sym
bugsparallel
bugsparallel is a Metrum Institute project to run BUGS (via R2WinBUGS) in parallel – McMC is an application, where parallel runs can be used very efficientlly. Here is the code for one example using bugsparallel.Some usefull links:Rosenthal, Parallel computing and Monte Carlo algorithmsWilkinson, Parallel Bayesian computation Related To leave...
729 sym
Additive vs. dominance two-allele genetic model by DIC
Two-allele model has alleles A1 and A2 and genotypes A1A1, A1A2, and A2A2. This model can be fitted using only additive effect (restricted model) or additve+dominance effect. (full model) The later model has one parameter more than the former. I was using this model lately and got weird DIC results – the full model had less number of parameter...
826 sym R (6216 sym/1 pcs)