Skip to content
Prev 42828 / 398506 Next

plotting predicted values (lines) over data?

Dear Jeff,

I'm not sure that I follow entirely what you've done, but perhaps the 
following suggestions will help: (1) If the plotted curve isn't smooth 
because it's evaluated at too few x-values or at x-values that are too 
unevenly spaced, what about getting a sufficient number of predicted values 
[via predict()] that are evenly spaced along the range of ht -- i.e., not 
at the observations? (2) Rather than connecting the fitted values with line 
segments, you could use spline() to interpolate.

I hope that this helps,
  John
At 11:23 AM 1/15/2004 -0800, Jeff D. Hamann wrote:
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox