I am writing some exercises using r-exams and I went in to this problem: I am making some simple linear model fitting using a mean centered covariate, here is the code: