A Method for Inferring the Rate of Occurrence and Fitness Effects of Advantageous Mutations