miscellaneous functions for use in pharmacometric analyses