I am really a beginner in stats (and also in r) and would need a input on whether my statistical methodology for following research experiment is right:
Study: I want to test the effect of the duration of a specific exercise (15mn, 20mn, 30mn, 45mn, 60mn) on the occurence of sport related injuries in 13 subjects. My hypothesis is that increased duration of this specific exercise is associated with less injuries.
- Dependent variable: injury yes/no (binary variable)
- Predictor variable: duration of exercise (continuous variable)
From my understanding of previous posts, I should use the lme4 package in R (which would help me to take into account repeated measures and to account for random effects)
here the R code I would use:
Am I on the good track? Any comment or advice would be much appreciated.