Skip to content
Prev 43644 / 398513 Next

r-squared equivalent for locally-smoothed figures?

Dear Stuart,

Since residuals(mod) works for models fit by locfit(), you could calculate 
an analog to R^2 as 1 - (sum(residuals(mod)^2)/sum((y - mean(y))^2). I'm 
not sure whether you can get residuals from sm.

I hope that this helps,
  John
At 03:44 PM 2/3/2004 +0000, Stuart Leask wrote:
____________________________
John Fox
Department of Sociology
McMaster University
email: jfox at mcmaster.ca
web: http://www.socsci.mcmaster.ca/jfox