When you different models that are trying to establish the relationship between the same variables -- but these models have different structural forms, when can you compare the $R^2 $ of these models?
For example, of the three models here:
- Regressing $ Y $ on $ X $
- Regressing $ Y $ on $ \ln(x) $
- Regressing $ \ln Y $ on $ \ln(x) $
- Regressing $ \ln(Y) $ on $ X $
which models would be comparable?
Should I write out: $$ R^2 = \frac { \Sigma \hat{y_i}^2 }{\Sigma y_i^2} $$ and then see if the numerator and denominator have the same general structure? (For example, if the denominator of one model is in logs and the other in raw form, then the model with the raw form variables will have a higher "Total Sum of Squares", and thus lesser $ R^2 $
(I do not necessarily need direct answers on these; but a general direction will greatly help).