Miscellaneous biostatistical modeling functions.