Re: [R] Adding locfit confidence intervals in trelis xyplot

From: Deepayan Sarkar <>
Date: Wed 18 Oct 2006 - 22:00:45 GMT

On 10/18/06, juan f poyatos <> wrote:
> Dear all,
> I am trying to include confidence intervals in a xyplot.
> This is what I am doing:
> xyplot(x ~ y|z, alpha = 1,band = "global",panel = panel.locfit)
> (more specifically, in my case x is a binary response from a logistic
> regression model)
> The output plot was fine but it did not include the confidence intervals
> Anyone knows how to do it? (xYplot did not work either)

Well, panel.locfit doesn't have any options to draw confidence bands, so you'll have to write a panel function that does. Shouldn't be hard to extend panel.locfit if you know how to extract that information from a locfit object.

-Deepayan mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri Oct 20 01:19:53 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 19 Oct 2006 - 15:30:13 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.