Fucntion to calculate lambda. Added a Odgen model