Re: [Rd] Strange behavior of model.frame() when given subset

2012-04-25 Thread Liaw, Andy
f Of Liaw, Andy Sent: Wednesday, April 25, 2012 8:34 AM To: r-devel@r-project.org Subject: [Rd] Strange behavior of model.frame() when given subset Dear R-devel, I recent got a bug report from a locfit user about the use of the subset argument when calling locfit(). Basically the symptom is that the

[Rd] Strange behavior of model.frame() when given subset

2012-04-25 Thread Liaw, Andy
Dear R-devel, I recent got a bug report from a locfit user about the use of the subset argument when calling locfit(). Basically the symptom is that the following two calls should produce the same result, but they don't: locfit(y ~ lp(x, h=1), data=subset(dat, x > 1)) locfit(y ~ lp(x, h=1), da