def get_deconfounder(name='residualize'):
    """String to Deconfounding Estimator"""
    name = name.lower()
    if name in ('residualize', 'regressout', 'residualize_linear',
        'regressout_linear'):
        from confounds.base import Residualize
        est = Residualize()
    elif name in ('augment', 'pad'):
        from confounds.base import Augment
        est = Augment()
    elif name in ('dummy', 'passthrough'):
        from confounds.base import DummyDeconfounding
        est = DummyDeconfounding()
    else:
        raise ValueError(
            'Unrecognized model name! Choose one of Residualize, Augment or Dummy.'
            )
    return est
