#NEWLINE# def __init__( self , endog = None , exog = None , weights = None , sigma = None , missing = 'none' ) : #NEWLINE# #INDENT# self . endog = endog #NEWLINE# self . exog = exog #NEWLINE# if ( not ( self is None ) ) : #NEWLINE# #INDENT# sigma = np . asarray ( sigma ) #NEWLINE# if ( sigma . ndim < 2 ) : #NEWLINE# #INDENT# self . sigma = sigma #NEWLINE# self . weights = ( 1.0 / sigma ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'correlated errors are not handled yet' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . weights = None