Ë
    ¢�DjCB  ã                   ó„  — d dl Zd dlmZ d dlmc mZ d dlmZ d dl	m
Z
 d dlmZ d dlmZ d dlmc mZ d dlmc mZ d dlmZ  G d„ d	«      Z G d
„ de«      Z G d„ de«      Z G d„ de«      Z G d„ dej6                  «      Z G d„ dej:                  «      Z G d„ dej>                  «      Z  ejB                  e e«       y)é    N)Údefaultdict)Úfamilies)ÚGLM)Úlinks)Úvarfuncs)Úcache_readonlyc                   ó   — e Zd ZdZd„ Zy)ÚQIFCovarianceay  
    A covariance model for quadratic inference function regression.

    The mat method returns a basis matrix B such that the inverse
    of the working covariance lies in the linear span of the
    basis matrices.

    Subclasses should set the number of basis matrices `num_terms`,
    so that `mat(d, j)` for j=0, ..., num_terms-1 gives the basis
    of dimension d.`
    c                 ó   — t         ‚)zX
        Returns the term'th basis matrix, which is a dim x dim
        matrix.
        )ÚNotImplementedError©ÚselfÚdimÚterms      úZC:\Crop_Prediction\Backend\crop-ai-system\venv\Lib\site-packages\statsmodels/genmod/qif.pyÚmatzQIFCovariance.mat   s
   € ô
 "Ð!ó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   © r   r   r
   r
      s   „ ñ
ó"r   r
   c                   ó   — e Zd ZdZd„ Zd„ Zy)ÚQIFIndependenceaQ  
    Independent working covariance for QIF regression.  This covariance
    model gives identical results to GEE with the independence working
    covariance.  When using QIFIndependence as the working covariance,
    the QIF value will be zero, and cannot be used for chi^2 testing, or
    for model selection using AIC, BIC, etc.
    c                 ó   — d| _         y )Né   ©Ú	num_terms©r   s    r   Ú__init__zQIFIndependence.__init__+   ó	   € Øˆ�r   c                 ó8   — |dk(  rt        j                  |«      S y )Nr   )ÚnpÚeyer   s      r   r   zQIFIndependence.mat.   s   € Ø�1Š9Ü—6‘6˜#“;Ðàr   N©r   r   r   r   r    r   r   r   r   r   r   "   s   „ ñòór   r   c                   ó   — e Zd ZdZd„ Zd„ Zy)ÚQIFExchangeablez=
    Exchangeable working covariance for QIF regression.
    c                 ó   — d| _         y )Né   r   r   s    r   r    zQIFExchangeable.__init__:   r!   r   c                 óp   — |dk(  rt        j                  |«      S |dk(  rt        j                  ||f«      S y )Nr   r   )r#   r$   Úonesr   s      r   r   zQIFExchangeable.mat=   s4   € Ø�1Š9Ü—6‘6˜#“;ÐØ�QŠYÜ—7‘7˜C ˜:Ó&Ð&àr   Nr%   r   r   r   r'   r'   5   s   „ ñòór   r'   c                   ó   — e Zd ZdZd„ Zd„ Zy)ÚQIFAutoregressivez?
    Autoregressive working covariance for QIF regression.
    c                 ó   — d| _         y )Né   r   r   s    r   r    zQIFAutoregressive.__init__K   r!   r   c                 ó@  — |dk  rd}t        |«      ‚|dk(  rt        j                  |«      S |dk(  r=t        j                  ||f«      }d|j                  dd |dz   …<   ||j
                  z  }|S |dk(  r+t        j                  ||f«      }d|d<   d||dz
  |dz
  f<   |S y )Nr/   z?Groups must have size at least 3 for autoregressive covariance.r   r   r)   ©r   r   )Ú
ValueErrorr#   r$   ÚzerosÚflatÚT)r   r   r   Úmsgr   s        r   r   zQIFAutoregressive.matN   s²   € à�Š7ð0ˆCä˜S“/Ð!à�1Š9Ü—6‘6˜#“;ÐØ�QŠYÜ—(‘(˜C ˜:Ó&ˆCØ#$ˆC�H‰H�Q�Z˜˜Q™�ZÑ Ø�3—5‘5‰LˆCØˆJØ�QŠYÜ—(‘(˜C ˜:Ó&ˆCØˆC�‰IØ !ˆC��A‘�s˜1‘u�ÑØˆJàr   Nr%   r   r   r   r-   r-   F   s   „ ñòór   r-   c                   ó\   ‡ — e Zd ZdZ	 	 dˆ fd„	Zd„ Zd„ Zd„ Zed	ˆ fd„	«       Z		 	 d
d„Z
ˆ xZS )ÚQIFa€  
    Fit a regression model using quadratic inference functions (QIF).

    QIF is an alternative to GEE that can be more efficient, and that
    offers different approaches for model selection and inference.

    Parameters
    ----------
    endog : array_like
        The dependent variables of the regression.
    exog : array_like
        The independent variables of the regression.
    groups : array_like
        Labels indicating which group each observation belongs to.
        Observations in different groups should be independent.
    family : genmod family
        An instance of a GLM family.
    cov_struct : QIFCovariance instance
        An instance of a QIFCovariance.

    References
    ----------
    A. Qu, B. Lindsay, B. Li (2000).  Improving Generalized Estimating
    Equations using Quadratic Inference Functions, Biometrika 87:4.
    www.jstor.org/stable/2673612
    c                 óº  •— |€t        j                  «       }n/t        |j                  t         j                  «      st        d«      ‚|| _        t        t        «      | _	        |€t        «       }nt        |t        «      st        d«      ‚|| _        t        j                  |«      }t!        ‰| �D  ||f||dœ|¤Ž t        t%        |«      «      | _        t)        | j*                  «      | _        t        t        «      }t/        |«      D ]  \  }	}
||
   j1                  |	«       Œ | j&                  D �cg c]  }||   ‘Œ	 c}| _        | j5                  |«       y c c}w )Nz.QIF: `family` must be a genmod family instancez2QIF: `cov_struct` must be a QIFCovariance instance)ÚgroupsÚmissing)r   ÚGaussianÚ
issubclassÚ	__class__ÚFamilyr2   Úfamilyr   ÚlistÚ_fit_historyr   Ú
isinstancer
   Ú
cov_structr#   ÚasarrayÚsuperr    ÚsetÚgroup_namesÚlenÚendogÚnobsÚ	enumerateÚappendÚ	groups_ixÚ_check_args)r   rJ   Úexogr:   r@   rD   r;   ÚkwargsrN   ÚiÚgÚnar>   s               €r   r    zQIF.__init__�   s=  ø€ ð ˆ>Ü×&Ñ&Ó(‰Fä˜f×.Ñ.´·±Ô@Ü ð "3ó 4ð 4àˆŒä'¬Ó-ˆÔð ÐÜ(Ó*‰Jä˜j¬-Ô8Ü ØHóJð Jà$ˆŒä—‘˜FÓ#ˆä‰ÑØ�4ð	
Ø &°ñ	
Ø;Aò	
ô  ¤ F£Ó,ˆÔÜ˜Ÿ
™
“OˆŒ	ä¤Ó%ˆ	Ü˜fÓ%ò 	#‰DˆAˆqØ�a‰L×Ñ Õ"ð	#à26×2BÑ2BÖC¨B˜) B›-ÒCˆŒà×Ñ˜Õ ùò Ds   Ä2Ec                 óØ   — t        |«      t        | j                  «      k7  rd}t        |«      ‚t        | j                  «      | j                  j                  d   k7  rd}t        |«      ‚y )Nz1QIF: groups and endog should have the same lengthr   zGQIF: the length of endog should be equal to the number of rows of exog.)rI   rJ   r2   rP   Úshape)r   r:   r6   s      r   rO   zQIF._check_args¨   sX   € äˆv‹;œ#˜dŸj™j›/Ò)ØEˆCÜ˜S“/Ð!äˆt�z‰z‹?˜dŸi™iŸo™o¨aÑ0Ò0ð-ˆCä˜S“/Ð!ð 1r   c                 ó”  — | j                   }| j                  }t        j                  ||«      }| j                  j
                  j                  |«      }| j                  j                  |«      }| j                  j
                  j                  |«      }| j                  j
                  j                  |«      }| j                  j                  j                  |«      }	| j                  j                  }
|j                  d   }||
z  }t        j                  |«      }t        j                  |«      }t        j                  ||f«      }t        j                  ||f«      }dg|z  }t        j                  ||f«      }| j                  j                  t        j                   u }t#        | j                  j
                  t$        j&                  t$        j(                  f«      }| j*                  D �]q  }t        j,                  ||   «      }||   ||   z
  }||z  }||dd…f   ||df   z  }d}t/        |
«      D �]º  }| j                  j1                  t3        |«      |«      }t        j                  ||«      |z  }t        j                  |j4                  |«      ||||z    t        j                  || |dd…df   z  «      |dd…df   z  }t        j                  |j4                  |«      ||||z   …dd…f<   |r|sót/        |«      D ]å  }t        j                  ||dd…f   j4                  ||   |||f   z  |z  «      } |s�d|	|   z  |dd…|f   z  ||   dz  z  }!t        j                  |j4                  |!t        j                  ||«      z  «      }"t        j                  |j4                  t        j                  ||!|z  «      |z  «      }#nd\  }"}#||||z   …|fxx   | |"z   |#z   z  cc<   Œç ||z  }�Œ½ t/        |«      D ]9  }t        j6                  ||dd…|f   «      }$||xx   |$|$j4                  z   z  cc<   Œ; ||z  }||z  }|t        j6                  ||«      z  }�Œt t3        | j*                  «      }%||%z  }||%z  }||%dz  z  }t        j                  |t        j8                  j;                  ||«      «      }&t        j                  |«      }'t/        |«      D ]Ÿ  }||xx   t3        | j*                  «      dz  z  cc<   t        j8                  j;                  |||   «      j4                  }$t        j8                  j;                  ||$«      }$t        j                  |t        j                  |$|«      «      |'|<   Œ¡ dt        j                  |j4                  t        j8                  j;                  ||«      «      z  |'z
  }(|&|(|||fS )aÈ  
        Calculate the gradient of the QIF objective function.

        Parameters
        ----------
        params : array_like
            The model parameters at which the gradient is evaluated.

        Returns
        -------
        grad : array_like
            The gradient vector of the QIF objective function.
        gn_deriv : array_like
            The gradients of each estimating equation with
            respect to the parameter.
        r   r   Ng      à¿g      ø?r1   r)   )rJ   rP   r#   Údotr@   ÚlinkÚinverseÚvarianceÚinverse_derivÚinverse_deriv2ÚderivrD   r   rV   r3   r   ÚconstantrC   r   ÚIdentityÚidentityrN   ÚsqrtÚranger   rI   r5   ÚouterÚlinalgÚsolve))r   ÚparamsrJ   rP   ÚlprÚmeanÚvaÚidlÚidl2ÚvdÚmÚpÚdÚgnÚgiÚgi_derivÚgn_derivÚcn_derivÚcmatÚfastvarÚfastlinkÚixÚsdÚresidÚsresidr^   ÚjjÚjÚcÚcrs1Úcrs2ÚkÚm1ÚvxÚm2Úm3ÚuÚngrpÚqifÚgcgÚgrads)                                            r   Ú	objectivezQIF.objective³   sþ  € ð$ —
‘
ˆØ�y‰yˆÜ�f‰f�T˜6Ó"ˆØ�{‰{×Ñ×'Ñ'¨Ó,ˆØ�[‰[×!Ñ! $Ó'ˆð �k‰k×Ñ×,Ñ,¨SÓ1ˆØ�{‰{×Ñ×.Ñ.¨sÓ3ˆØ�[‰[×!Ñ!×'Ñ'¨Ó-ˆà�O‰O×%Ñ%ˆØ�J‰J�q‰Mˆà�‰EˆÜ�X‰X�a‹[ˆÜ�X‰X�a‹[ˆÜ—8‘8˜Q ˜FÓ#ˆÜ—8‘8˜Q ˜FÓ#ˆØ�3˜‘7ˆÜ�x‰x˜˜A˜Óˆà—+‘+×&Ñ&¬(×*;Ñ*;Ð;ˆÜØ�K‰K×Ñä�^‰^œUŸ^™^Ð,ó
ˆð —.‘.ó %	%ˆBÜ—‘˜˜B™“ˆBØ˜"‘I  R¡Ñ(ˆEØ˜R‘ZˆFØ˜šQ˜‘K # b¨$ h¡-Ñ/ˆEàˆBÜ˜1“Xó �ð
 —O‘O×'Ñ'¬¨B«°Ó3�Ü—v‘v˜a Ó(¨2Ñ-�Ü Ÿf™f U§W¡W¨dÓ3��2�b˜‘d�Ü—v‘v˜a % ¨"ªQ°¨W©+Ñ!5Ó6¸ºA¸t¸G¹ÑD�Ü')§v¡v¨e¯g©g°tÓ'<�˜˜B˜q™D˜¢!˜Ñ$Ù ¡WÜ" 1›Xò 	=˜ÜŸV™V D¨ªQ¨¡K§M¡MØ$(¨¡H¨t°B¸°E©{Ñ$:¸TÑ$AóC˜á&Ø!%¨¨2©¡°²q¸!°t±Ñ!<¸rÀ"¹vÀs¹{Ñ!J˜BÜ!#§¡¨¯©°´b·f±f¸QÀÓ6GÑ1GÓ!H˜BÜ!#§¡¨¯©´·±¸¸2À¹:Ó1FÈÑ1KÓ!L™Bà%)™F˜B Ø   B q¡D ¨! Ó,°°R±¸"±Ñ<Ô,ð	=ð �a‘’ð+ô. ˜1“Xò '�Ü—H‘H˜R ª!¨Q¨$¡Ó0�Ø˜“˜q 1§3¡3™wÑ&”ð'ð �"‰HˆBØ˜Ñ ˆHà”B—H‘H˜R Ó$Ñ$ŠDðK%	%ôN �4—>‘>Ó"ˆØ
ˆd‰
ˆØ�DÑˆØ��a‘‰ˆä�f‰f�RœŸ™Ÿ™¨¨rÓ2Ó3ˆä�h‰h�q‹kˆÜ�q“ò 	/ˆAØ�Q‹Kœ3˜tŸ~™~Ó.°Ñ1Ñ1‹KÜ—	‘	—‘  h¨q¡kÓ2×4Ñ4ˆAÜ—	‘	—‘  aÓ(ˆAÜ—V‘V˜B¤§¡ q¨"£Ó.ˆC�ŠFð		/ð ”2—6‘6˜(Ÿ*™*¤b§i¡i§o¡o°d¸BÓ&?Ó@Ñ@À3ÑFˆà�D˜$  HÐ,Ð,r   c                 ó¸  — t        | j                  t        j                  t        j                  f«      ryt        | d«      r| j                  }n| j                  d   }t        j                  | j                  |«      }| j                  j                  j                  |«      }| j                  |z
  }t        j                  |dz  «      | j                  |z
  z  }|S )z¯
        Estimate the dispersion/scale.

        The scale parameter for binomial and Poisson families is
        fixed at 1, otherwise it is estimated from the data.
        g      ð?Ú
ddof_scaler   r)   )rC   r@   r   ÚBinomialÚPoissonÚhasattrrŽ   rP   r#   rX   rY   rZ   rJ   ÚsumrK   )r   rg   rŽ   rh   ri   r{   Úscales          r   Úestimate_scalezQIF.estimate_scale  s§   € ô �d—k‘k¤H×$5Ñ$5´x×7GÑ7GÐ#HÔIØä�4˜Ô&ØŸ™‰JàŸ™ 1™ˆJä�f‰f�T—Y‘Y Ó'ˆØ�{‰{×Ñ×'Ñ'¨Ó,ˆØ—
‘
˜TÑ!ˆÜ—‘�u˜a‘xÓ  D§I¡I°
Ñ$:Ñ;ˆàˆr   c                 ó`   •— t        |t        «      r||   }t        ‰| �  |g|¢­|||dœ|¤Ž}|S )aÄ  
        Create a QIF model instance from a formula and dataframe.

        Parameters
        ----------
        formula : str or generic Formula object
            The formula specifying the model
        groups : array_like or string
            Array of grouping labels.  If a string, this is the name
            of a variable in `data` that contains the grouping labels.
        data : array_like
            The data for the model.
        subset : array_like
            An array_like object of booleans, integers, or index
            values that indicate the subset of the data to used when
            fitting the model.

        Returns
        -------
        model : QIF model instance
        )ÚdataÚsubsetr:   )rC   ÚstrrF   Úfrom_formula)	ÚclsÚformular:   r–   r—   ÚargsrQ   Úmodelr>   s	           €r   r™   zQIF.from_formula2  sN   ø€ ô2 �fœcÔ"Ø˜&‘\ˆFä‘Ñ$Øð3à#'ñ3Ø!%¨fØ ñ3à+1ñ3ˆð ˆr   c           	      óä  — |€| j                   j                  d   | _        n|| _        |€It        | j                  | j                   | j
                  ¬«      }|j                  «       }|j                  }n|}t        |«      D �]>  }	| j                  |«      \  }
}}}	}t        j                  t        j                  ||z  «      «      }| j                  d   j                  |
«       | j                  d   j                  |«       ||k  r n¹dt        j                  |j                   t        j"                  j%                  ||«      «      z  }t        j"                  j%                  ||«      }t        j                  t        j                  ||z  «      «      }| j                  d   j                  |«       ||k  r n||z  }�ŒA t        j                  j                   t        j"                  j%                  |«      «      }t        j"                  j'                  |«      }| j)                  |«      }t+        | |||z  |«      }| j                  |_        t/        t0        «      | _        t3        |«      S )a,  
        Fit a GLM to correlated data using QIF.

        Parameters
        ----------
        maxiter : int
            Maximum number of iterations.
        start_params : array_like, optional
            Starting values
        tol : float
            Convergence threshold for difference of successive
            estimates.
        gtol : float
            Convergence threshold for gradient.
        ddof_scale : int, optional
            Degrees of freedom for the scale parameter

        Returns
        -------
        QIFResults object
        r   )r@   r‰   Úgradnormr)   Ústepnorm)rP   rV   rŽ   r   rJ   r@   Úfitrg   rc   rŒ   r#   rb   r’   rB   rM   rX   r5   re   rf   Úinvr”   Ú
QIFResultsÚfit_historyr   rA   ÚQIFResultsWrapper)r   ÚmaxiterÚstart_paramsÚtolÚgtolrŽ   r�   Úresultrg   Ú_r‰   r‹   rv   rt   ÚgnormÚcjacÚstepÚsnormÚvcovr“   Úrslts                        r   r¡   zQIF.fitT  så  € ð0 ÐØ"Ÿi™iŸo™o¨aÑ0ˆD�Oà(ˆDŒOàÐÜ˜Ÿ
™
 D§I¡I°d·k±kÔBˆEØ—Y‘Y“[ˆFØ—]‘]‰Fà!ˆFä�w“ó 	ˆAà+/¯>©>¸&Ó+AÑ(ˆC��t˜Q ä—G‘GœBŸF™F 4¨$¡;Ó/Ó0ˆEØ×Ñ˜eÑ$×+Ñ+¨CÔ0Ø×Ñ˜jÑ)×0Ñ0°Ô7à�tŠ|Ùà”r—v‘v˜hŸj™j¬"¯)©)¯/©/¸$ÀÓ*IÓJÑJˆDÜ—9‘9—?‘? 4¨Ó.ˆDä—G‘GœBŸF™F 4¨$¡;Ó/Ó0ˆEØ×Ñ˜jÑ)×0Ñ0°Ô7Ø�sŠ{ÙØ�d‰NŠFð%	ô( �v‰v�h—j‘j¤"§)¡)§/¡/°$¸Ó"AÓBˆÜ�y‰y�}‰}˜TÓ"ˆØ×#Ñ# FÓ+ˆä˜$ ¨¨u©°eÓ<ˆØ×,Ñ,ˆÔÜ'¬Ó-ˆÔä  Ó&Ð&r   )NNÚnone)N)éd   Ng�íµ ÷Æ°>g-Cëâ6?N)r   r   r   r   r    rO   rŒ   r”   Úclassmethodr™   r¡   Ú__classcell__©r>   s   @r   r8   r8   e   sL   ø„ ñð6 48Ø*0õ%!òN	"òf-òPð. ôó ððB BFØ÷@'r   r8   c                   ó^   ‡ — e Zd ZdZ	 dˆ fd„	Zed„ «       Zed„ «       Zed„ «       Zdd„Z	ˆ xZ
S )	r£   z Results class for QIF Regressionc                 óx   •— t         ‰| �  ||||¬«       | j                  j                  |«      \  | _        }}}}y )N)Únormalized_cov_paramsr“   )rF   r    r�   rŒ   r‰   )	r   r�   rg   Ú
cov_paramsr“   Úuse_tÚkwdsr«   r>   s	           €r   r    zQIFResults.__init__™  sD   ø€ ô 	‰ÑØ�6°Øð 	ô 	ð  $Ÿz™z×3Ñ3°FÓ;ÑˆŒ�!�Q˜™1r   c                 óÎ   — t        | j                  j                  t        «      rd}t	        |«      ‚| j                  j
                  j                  d   }| j                  d|z  z   S )zA
        An AIC-like statistic for models fit using QIF.
        z1AIC not available with QIFIndependence covariancer   r)   )rC   r�   rD   r   r2   rP   rV   r‰   ©r   r6   Údfs      r   ÚaiczQIFResults.aic¢  sQ   € ô
 �d—j‘j×+Ñ+¬_Ô=ØEˆCÜ˜S“/Ð!Ø�Z‰Z�_‰_×"Ñ" 1Ñ%ˆØ�x‰x˜!˜B™$‰Ðr   c                 ó  — t        | j                  j                  t        «      rd}t	        |«      ‚| j                  j
                  j                  d   }| j                  t        j                  | j                  j                  «      |z  z   S )z@
        A BIC-like statistic for models fit using QIF.
        z1BIC not available with QIFIndependence covariancer   )rC   r�   rD   r   r2   rP   rV   r‰   r#   ÚlogrK   r¾   s      r   ÚbiczQIFResults.bic­  sd   € ô
 �d—j‘j×+Ñ+¬_Ô=ØEˆCÜ˜S“/Ð!Ø�Z‰Z�_‰_×"Ñ" 1Ñ%ˆØ�x‰xœ"Ÿ&™& §¡§¡Ó1°"Ñ4Ñ4Ð4r   c                 óÄ   — | j                   j                  j                  j                  t	        j
                  | j                   j                  | j                  «      «      S )z;
        Returns the fitted values from the model.
        )r�   r@   rY   rZ   r#   rX   rP   rg   r   s    r   ÚfittedvalueszQIFResults.fittedvalues¸  sA   € ð
 �z‰z× Ñ ×%Ñ%×-Ñ-Ü—‘�t—z‘z—‘¨¯©Ó4ó6ð 	6r   c           	      ó  — dddgfd| j                   j                  j                  j                  gfd| j                   j                  j                  j                  gfddg}| j                   j
                  D �cg c]  }t        |«      ‘Œ }}dt        |«      gfd	t        |«      gfd
t        |«      gfdt        |«      gfddt        j                  |«      z  gfdd| j                  z  gfg}|€&| j                   j                  j                  dz   dz   }|€| j                   j                  }|€| j                   j                  }ddlm}	  |	«       }
|
j#                  | |||||¬«       |
j%                  | |||d¬«       |
S c c}w )ag  
        Summarize the QIF regression results

        Parameters
        ----------
        yname : str, optional
            Default is `y`
        xname : list[str], optional
            Names for the exogenous variables, default is `var_#` for ## in
            the number of regressors. Must match the number of parameters in
            the model
        title : str, optional
            Title for the top table. If not None, then this replaces
            the default title
        alpha : float
            significance level for the confidence intervals

        Returns
        -------
        smry : Summary instance
            this holds the summary tables and text, which can be
            printed or converted to various output formats.

        See Also
        --------
        statsmodels.iolib.summary.Summary : class to hold summary results
        )zDep. Variable:NzMethod:r8   zFamily:zCovariance structure:)zDate:N)zTime:NzNo. Observations:zNo. clusters:zMin. cluster size:zMax. cluster size:zMean cluster size:z%.1fzScale:z%.3fú zRegression Resultsr   )ÚSummary)ÚgleftÚgrightÚynameÚxnameÚtitleF)rË   rÌ   Úalphar»   )r�   r@   r>   r   rD   rN   rI   r’   ÚminÚmaxr#   ri   r“   Ú
exog_namesÚendog_namesÚstatsmodels.iolib.summaryrÈ   Úadd_table_2colsÚadd_table_params)r   rË   rÌ   rÍ   rÎ   Útop_leftÚyÚNYÚ	top_rightrÈ   Úsmrys              r   ÚsummaryzQIFResults.summaryÀ  sž  € ð: -Ø  Ð(Ø §¡×!2Ñ!2×!<Ñ!<×!EÑ!EÐ FÐGØ,Ø—j‘j×+Ñ+×5Ñ5×>Ñ>Ð?ðAà#Ø#ðˆð #Ÿj™j×2Ñ2Ö3˜Œc�!�fÐ3ˆÐ3à)¬C°«G¨9Ð5Ø%¬¨B« yÐ1Ø*¬S°«W¨IÐ6Ø*¬S°«W¨IÐ6Ø*¨V´b·g±g¸b³kÑ-AÐ,BÐCØ ¨$¯*©*Ñ!4Ð 5Ð6ðˆ	ð ˆ=Ø—J‘J×(Ñ(×1Ñ1°CÑ7Ø$ñ%ˆEð
 ˆ=Ø—J‘J×)Ñ)ˆEàˆ=Ø—J‘J×*Ñ*ˆEõ 	6Ù‹yˆØ×Ñ˜T¨¸)Ø#(°Ø#(ð 	ô 	*ð 	×Ñ˜d¨%°uØ$)°ð 	ô 	8ð ˆùò? 4s   Á:F)F)NNNgš™™™™™©?)r   r   r   r   r    r   rÀ   rÃ   rÅ   rÛ   rµ   r¶   s   @r   r£   r£   —  sP   ø„ Ù*àõ<ð ñó ðð ñ5ó ð5ð ñ6ó ð6÷Er   r£   c                   ó   — e Zd Zy)r¥   N)r   r   r   r   r   r   r¥   r¥     s   „ Ør   r¥   )"Únumpyr#   Úcollectionsr   Ústatsmodels.base.modelÚbaser�   Ústatsmodels.genmodr   Ú+statsmodels.genmod.generalized_linear_modelr   Ústatsmodels.genmod.familiesr   r   Ú#statsmodels.regression.linear_modelÚ
regressionÚlinear_modelÚlmÚstatsmodels.base.wrapperÚwrapperÚwrapÚstatsmodels.tools.decoratorsr   r
   r   r'   r-   ÚModelr8   ÚLikelihoodModelResultsr£   ÚRegressionResultsWrapperr¥   Úpopulate_wrapperr   r   r   ú<module>rð      s©   ðÛ Ý #ß %Ð %Ý 'Ý ;Ý -Ý 0ß 0Ð 0ß 'Ð 'Ý 7÷"ñ "ô*�mô ô&�mô ô"˜ô ô>o'ˆ$�*‰*ô o'ôd	n�×,Ñ,ô nôb	˜×3Ñ3ô 	ð €× Ñ Ð'¨Õ 4r   