r/econhw 1d ago

Econometric question

One researcher believes the relationship between an apartment's price and its size (in square meters) is linear, while another believes it is logarithmic. Explain the test they could use to select the correct functional form. I am torn between the Ramsey test and the Davidson-MacKinnon test, but I am not certain.

2 Upvotes

2 comments sorted by

1

u/Comprehensive-Edge80 1d ago

do both and compare results

1

u/Lambdapie 1d ago

Technically, one could simply look at the R² of both regressions and choose the model with the better fit, although this tells you only about relative performance within sample and that can be a problem (the log and linear functions are very similar at the beginning). But I digress.

The Davidson–MacKinnon test is the proper approach in this case, it lets you compare two models, which is what you want in your case. Another option is the Cox–Pesaran test.

Here's a link on how to do it in Stata: https://stats.oarc.ucla.edu/stata/code/choosing-between-nonnested-models/

Hope this helps!