PTM reproductive success modelling with mgcv