data(dutchboys)
## Expectile Regression using the restricted approach
expreg <- expectile.restricted(dutchboys[,3] ~ base(dutchboys[,2],"pspline"),smooth="schall")
## The calculation of expectiles for given distributions
enorm(0.1)
## 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)
Run the code above in your browser using DataLab