Browsing All Posts filed under »R tips and tricks«

Forensic occupational hygiene: Newcomb, Benford, and their law

October 11, 2012

0

Finally, with the X2012 conference out of the way, the summer holidays a distant past and the last of the grant proposal I was to submit before the end of September also done, it is time to breathe out, get a cup of coffee and enjoy some mathematics. Not the really difficult type, obviously, but […]

How to transfer data without STAT/Transfer

March 14, 2012

2

If you have been working with datasets you, at some point along the way, must have been stuck with the wrong data format. This is not so much of a problem for most types of data, since they can be imported in other programs as well. Unfortunately, the people at the SAS Institute do not […]

R script: obtaining type III SS

June 13, 2011

0

R typically only provides you with the type I Sum-of-Squares when performing regression analysis. However, as most people are aware of there are also type II and type III SS. SAS for example also provides type III SS without specifically asking the program to do so. In R, this is slightly more complicated. As with […]

WinBUGS – Parametric Bayesian hierarchical variable selection for gene-environment and gene-gene interactions

June 10, 2011

0

Although a whole new world of research has opened with the advent of rapid and relatively cheap genotyping technologies, including the opportunity to identify gene-environment and gene-gene (epistatic) interactions, this also created new problems caused by the enormous dimensionality of the parameter space. A large number of methods have been developed that aim to address […]

R script: Incorporating uncertainty in aggregate burden of disease measures.

June 10, 2011

1

The following script can be used for normal calculation of Disability Adjusted Life Years (DALYs) using data from life tables, but in addition enables the incorporation of the uncertainty of each parameter in the DALY calculation using Markov Chain Monte Carlo simulation. More detail can be found in the following paper (for which this script […]