add_derived_column_ln now translates values to have a minimum of 1 before applying log(). Implemented Portmanteau tests (wntestq in STATA).