Miscellaneous R data handling, estimation and inference functions.