Text this: Statistical modelling for missing and spurious pulses in pulse repetition interval (PRI) analysis