'Estimates of of unobserved trend component
Returns
out: Bunch
Has the following attributes:
- `filtered`: a time series array with the filtered estimate of
the component
- `filtered_cov`: a time series array with the filtered estimate of
the variance/covariance of the component
- `smoothed`: a time series array with the smoothed estimate of
the component
- `smoothed_cov`: a time series array with the smoothed estimate of
the variance/covariance of the component
- `offset`: an integer giving the offset in the state vector where
this component begins'

@property
def trend(self):

    out = None
    spec = self.specification
    if spec.trend:
        offset = int(spec.level)
        out = Bunch(filtered=self.filtered_state[offset], filtered_cov=self.filtered_state_cov[(offset, offset)], smoothed=None, smoothed_cov=None, offset=offset)
        if (self.smoothed_state is not None):
            out.smoothed = self.smoothed_state[offset]
        if (self.smoothed_state_cov is not None):
            out.smoothed_cov = self.smoothed_state_cov[(offset, offset)]
    return out
