def abbr(name):
    """ Return abbreviation of a given name.
    Example:
        fixed-effect -> f10t
        per-member -> p8r
    """
    return name if len(name) <= 2 else f"{name[0]}{len(name) - 2}{name[-1]}"