Loss integral calculations for standard distributions in R