plot.expectreg {expectreg}R Documentation

Default expectreg plotting

Description

Takes a expectreg object and plots the estimated effects.

Usage

## S3 method for class 'expectreg'
plot(x, rug = TRUE, xlab = NULL, ylab = NULL, ylim = NULL, 
legend = TRUE, ci = FALSE, ask = NULL, cex.main = 2, mar.min = 5, main = NULL, 
cols = "rainbow", hcl.par = list(h = c(260, 0), c = 185, l = c(30, 85)), 
ylim_spat = NULL, ylim_factor = NULL, range_warning = TRUE, add_intercept = TRUE, ...)

Arguments

x

An object of class expectreg as returned e.g. by the function expectreg.ls.

rug

Boolean. Whether nonlinear effects are displayed in a rug plot.

xlab, ylab, ylim

Graphic parameters. xlab should match the number of covariates.

legend

Boolean. Decides whether a legend is added to the plots.

ci

Boolean. Whether confidence intervals and significances should be plotted.

ask

Should always be asked before a new plot is printed.

cex.main

Font size of main

mar.min

Minimal margins, important when markov fields are plotted

main

Vector of main per plot

cols

Colours sheme of plots. Default is rainbow. Alternatively hcl can be used.

hcl.par

Parameters to specify the hcl coulour sheme.

ylim_spat

y_limits of the markov random field and all other spatial methods.

ylim_factor

y_limits of the plots of factor covariates.

range_warning

Should a warning be printed in the graphic if the range of the markov random field/factor plot is larger than the specified limits in markov_ylim/factors_ylim.

add_intercept

Should the intercept be added to the plots of splines?

...

Graphical parameters passesd on to the standard plot function.

Details

The plot function gives a visual representation of the fitted expectiles separately for each covariate.

Value

No return value, only graphical output.

Author(s)

Fabian Otto- Sobotka
Carl von Ossietzky University Oldenburg
https://uol.de

Elmar Spiegel
Georg August University Goettingen
https://www.uni-goettingen.de

References

Schnabel S and Eilers P (2009) Optimal expectile smoothing Computational Statistics and Data Analysis, 53:4168-4177

Sobotka F and Kneib T (2010) Geoadditive Expectile Regression Computational Statistics and Data Analysis, doi: 10.1016/j.csda.2010.11.015.

See Also

expectreg.ls, expectreg.boost, expectreg.qp

Examples

data(dutchboys)

expreg <- expectreg.ls(hgt ~ rb(age,"pspline"),data=dutchboys,smooth="f",
                       expectiles=c(0.05,0.2,0.8,0.95))
plot(expreg)

[Package expectreg version 0.53 Index]