components function

Extract components from a fitted model