plot | R Documentation |
Provides plot methods for objects.
## S4 method for signature 'ConfregEL'
plot(x, y, ...)
## S4 method for signature 'EL'
plot(x, y, ...)
## S4 method for signature 'ELD'
plot(x, y, ...)
x |
An object to be plotted. |
y |
Not used. |
... |
Further graphical parameters (see |
No return value, called for side effects.
plot(ConfregEL)
: Plots a two-dimensional confidence region for model
parameters.
plot(EL)
: Plots empirical likelihood displacement values versus
observation index. eld()
is called implicitly.
plot(ELD)
: Plots empirical likelihood displacement values versus
observation index.
ConfregEL, EL, ELD,
confreg()
, eld()
## Model
data("mtcars")
fit <- el_lm(hp ~ wt, data = mtcars)
## Confidence region
out1 <- confreg(fit, npoints = 500)
plot(out1)
## Empirical likelihood displacement
out2 <- eld(fit)
plot(out2)
## A shortcut to `ELD`
plot(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.