[R] Adding locfit confidence intervals in trelis xyplot
Deepayan Sarkar
deepayan.sarkar at gmail.com
Thu Oct 19 00:00:45 CEST 2006
On 10/18/06, juan f poyatos <jpoyatos at cnio.es> 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
More information about the R-help
mailing list