# Which test to use to compare vitamin D levels

I'm working on research into the vitamin D levels of professional and amateur soccer players, and relationship with factors such as skin color, vitamin D-intake etc.

I don't know which test to use. I'll give you an idea of the situation:

• I have a continuous variable: the measured vitamin D levels
• A categorial variable: the skin color (either black or white )

I've read about the One-way ANOVA, but it requires three options for the categorical variable. I used the ANOVA test, the p-value was 0.005. Is it possible to use this test with just two options for the categorical variable? Or is there another test I could use?

And if it's possible to use the ANOVA, does the value F mean anything, or just the p-value?

• Hi @Joost, welcome to the site. If you have only two groups (black and white), you could do a simple two-sample t-test to compare the mean vitamin D levels between black and white skin color. By the way: what software do you use? Stata? SPSS? R? Jun 8, 2013 at 19:55
• I am actually looking for the correlation/association between the vitmamin D status and the skin color, sorry if my question wasnt clear enough. Any ideas on which test to use in this case? Jun 8, 2013 at 20:16
• Okay, then you could run a regression model with vitamin D as dependent and the skin color as independent categorical variable. But if you have only those two variables, that's basically the same as a two-sample t-test (because you have only 2 categories). Jun 8, 2013 at 21:00
• If you want a correlation coefficient, you could calculate the Point-biserial correlation coefficient which is just the normal Pearson correlation coefficient where one variable is dichotomous (skin color). So just calculate the normal correlation coefficient between vit. D and skin color. Jun 8, 2013 at 21:15