I am trying to do a permutation test for the Ramsey RESET test. More precisely, I am interested in the "exact" p-value of the test.
I have checked the coin package and all the functions (oneway_test; ...). There are plenty of functions but no one is helping me for RESET test. I have checked as well lmPerm package for linear model but I don't find anything that can help me. I have googled but did not find anything to help me. I guess I have to write my own function. I really don't know how to do that. Any help would be highly appreciated.