Mark,
It's harder than it should be. There are basically three ways I know of:
1) Bootstrap the lines
2) Use predict to get standard errors and turn those into confidence intervals
3) Use a graphics library like ggplot2()
library(ggplot2)
qplot(carat, price, data = diamonds, geom = c("point", "smooth"))
The downside of 3 is that the syntax is quite different. If someone
has an easier suggestion, I'd love to hear it! I'd go with
bootstrapping myself...
Brandon
On Mon, May 2, 2011 at 3:51 PM, Mark Bell <markbell(a)mit.edu> wrote:
Hi all,
Sorry to bother everyone after class is over - I was wondering if anyone
knows how/has any code to create 95% confidence intervals for a lowess line
in R? I've seen these done in articles, and am wondering how to do it..Feel
free to reply to me directly rather than the whole class to avoid clogging
up people's inboxes...
Cheers,
Mark
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
--
gov2001 mailing list served by Harvard-MIT Data Center
List Address: gov2001(a)lists.gking.harvard.edu
Subscribe/Unsubscribe:
http://lists.gking.harvard.edu/?info=gov2001