Nonparametric estimation of some dividend problems in the perturbed compound Poisson model