R programs accompanying Consumer loss and reference dependence