plmm_loss function

Loss method for "plmm" class