def is_statsmodels_installed():
    """Test if statsmodels is installed."""
    try:
        import statsmodels
    except:
        raise IOError(
            'statsmodels not installed. See http://www.statsmodels.org/stable/install.html'
            )
