I would like to fit a nonparametric regression model with two predictors. What R packages are available? I found 'loess' function in 'stats' package and 'gam' function in 'gam' package. Is there anything else?
1 Answer
$\begingroup$
$\endgroup$
2
This is far from comprehensive, but you should also take a look at locfit
for various "local" methods and wavethresh
for wavelet methods. John Fox's list of packages from 2005 should be helpful (though is bound to be somewhat outdated).
-
$\begingroup$ Thank you for your suggestion. I just tried 'locfit' and it works well. But I don't know which function to use in 'wavethresh'. Could you give me a very simple example? (In case of 'locfit', it would be locfit(Y~X1+X2,data=data.sample) ) $\endgroup$ Commented Aug 14, 2014 at 18:07
-
$\begingroup$ I don't know wavelet methods so well so I'll just point you to Schafer and Wasserman's tutorial on nonparametric inference (example using 'wavethresh' starts on pg. 92). You can get the WMAP data from the example at Wasserman's website. Hope that helps! $\endgroup$– daniel.sCommented Aug 15, 2014 at 7:15
earth
. $\endgroup$