def _sm_is_ver9():
    """
    Try to determine if the statsmodels version is 0.9.x.
    """
    try:
        import pkg_resources
        sm_ver = pkg_resources.get_distribution('statsmodels').version
        major, minor = sm_ver.split('.')[:2]
        if major == '0' and minor == '9':
            return True
    except:
        return True
    return False
