data(india)
model1<-expectreg.ls(stunting~rb(cbmi),smooth="fixed",data=india,lambda=30,
estimate="restricted",expectiles=c(0.01,0.05,0.2,0.8,0.95,0.99))
plot(model1)
# Change formula and update model
add_formula<-.~.+rb(cage)
update_model1<-update(model1,add_formula)
plot(update_model1)
# Use different asymmetries and update model
update_model2<-update(model1,expectiles=c(0.1,0.5,0.9))
plot(update_model2)
Run the code above in your browser using DataLab