penaltyParameter function

Compute the penalty parameter for the model.