I've discovered by chance that R produces different results when using a dataset which has been first transformed by the natural logarithm and then loaded into R for analysis and when the dataset is loaded without prior transformation and only the variables in the regression function are transformed by the natural logarithm in R. Here an illustration:
dataset already transformed, lin-lin regression in R
ols <- lm(Y ~ X, data = Dataset_log)
dataset not transformed, log-log regression in R
ols <- lm(log(Y) ~ log(X), data = Dataset_not_in_log)
It seems that only the intercept in both regressions is different (magnitude and standard error). All other coefficients have the same estimator and the same standard errors. Nonetheless, this has naturally an impact on the overall F-statistic and the residual standard errors. Why are the results different?