#NEWLINE# @ property #NEWLINE# def level( self ) : #NEWLINE# #INDENT# '\n        Estimates of unobserved level component\n\n        Returns\n        -------\n        out: Bunch\n            Has the following attributes:\n            \n            - `filtered`: a time series array with the filtered estimate of\n                          the component\n            - `filtered_cov`: a time series array with the filtered estimate of\n                          the variance/covariance of the component\n            - `smoothed`: a time series array with the smoothed estimate of\n                          the component\n            - `smoothed_cov`: a time series array with the smoothed estimate of\n                          the variance/covariance of the component\n            - `offset`: an integer giving the offset in the state vector where\n                        this component begins\n        ' #NEWLINE# out = None #NEWLINE# spec = self . specification #NEWLINE# if spec . level : #NEWLINE# #INDENT# offset = 0 #NEWLINE# out = Bunch ( filtered = self . filtered_state [ offset ] , filtered_cov = self . filtered_state_cov [ ( offset , offset ) ] , smoothed = None , smoothed_cov = None , offset = offset ) #NEWLINE# if ( offset . smoothed_state is not None ) : #NEWLINE# #INDENT# out . smoothed = self . smoothed_state [ offset ] #NEWLINE# #UNINDENT# if ( self . smoothed_state_cov is not None ) : #NEWLINE# #INDENT# out . smoothed_cov = self . smoothed_state_cov [ ( offset , offset ) ] #NEWLINE# #UNINDENT# #UNINDENT# return out