I'm interested in predicting Y
and am studying different two measurement techniques X1
and X2
. It could be for instance that I want to predict the tastiness of a banana, either by measuring how long it has been lying on the table, or by measuring the number of brown spots on the banana.
I want to know which one of the measuring techniques is better, should I choose to perform only one.
I can create a linear model in R:
m1 = lm(Y ~ X1)
m2 = lm(Y ~ X2)
Now let's say X1
is a superior predictor of banana tastiness than X2
. When calculating the R^2 of the two models, the R^2 of model m1
is clearly higher than model m2
. Before writing a paper on how method X1
is better than X2
, I want to have some sort of indication that the difference is not by chance, possibly in the form of a p-value.
How would one go about this? How to do it when I'm using different brands of bananas and move to a Linear Mixed Effect model that incoporates banana brand as a random effect?