# What languages are commonly used in medical statistics?

A doctor friend has asked if I would teach them some basic programming, because they think it will be useful when they start to do research in the future.

To give some background - they don't know what language their lab-mates will use (because they don't know what lab they are joining) but they would like to learn something that will be generally useful. They are not interested in doing statistical research, but rather applying statistical techniques to medical data.

There are some obvious options (I know enough about all of these to teach them)

• Python
• R
• MATLAB

and a few less obvious ones (I don't know anything about these)

• Stata
• SAS
• SPSS

I'd like to know what languages are most commonly used in medical statistics - do people use general purpose languages like Python, or more specialized languages like R and MATLAB, or statistical software like Stata/SAS/SPSS?

I should clarify that I'm thinking of someone whose primary job is as a doctor/medical researcher who will be applying statistics, not someone who is a professional statistician or software developer who happens to be working in medicine (so e.g. I think that C/C++/Java would all be poor choices).

• I think you are missing SAS in your list. And I would hesitate to teach a language, I know only a bit about. – Roland Oct 31 '13 at 10:14
• Edited to include SAS. This question is just to get an idea of what languages are actually used. Obviously I wouldn't attempt to teach one I hadn't used before (also, when I say I know "a bit" about Python/R/Matlab I am being modest... I use them all regularly in a production environment). – Chris Taylor Oct 31 '13 at 10:17
• This could do with some sharpening up: it seems to blur "medical research" and "medical statistics" (or "biostatistics"). Perhaps most fundamental medical research is not statistical, or at least not strongly statistical. – Nick Cox Oct 31 '13 at 10:26
• I've never heard of medical researchers using EViews. Its loyal fans seem mostly to be economists. I don't think it claims to be general statistical software. – Nick Cox Oct 31 '13 at 10:32
• @NickCox thanks for the comments, I'll see what I can do. – Chris Taylor Oct 31 '13 at 10:35

I don't know what programming languages are used in medical labs, although I get the sense that none are. In terms of statistics, I'd say R and SAS dominate. These are radically different languages. The problem with trying to teach SAS is 1) Since it isn't on your list you probably don't know it and 2) You'd have to have access to it, and it's expensive. That would lead to teaching R. But if they wind up in a place that uses SAS exclusively, I don't think R would help much.
However, if the person will be doing their own analysis, then R is fine. I would try to teach reproducible research methods.