data(dutchboys)
## Expectile Regression using the restricted approach
ex = expectreg.ls(dist ~ rb(speed),data=cars,smooth="f",lambda=5,estimate="restricted")
names(ex)
## The calculation of expectiles for given distributions
enorm(0.1)
enorm(0.5)
## Introducing the expectiles-meet-quantiles distribution
x = seq(-5,5,length=100)
plot(x,demq(x),type="l")
## giving an expectile analogon to the 'quantile' function
y = rnorm(1000)
expectile(y)
eenorm(y)
Run the code above in your browser using DataLab