
    M/Ph                        d Z ddlZ G d de          Z G d de          Z G d de          Z G d	 d
e          Z G d de          Z G d de          Z	 G d de
          Z G d de          ZdZ G d de          Z G d de          ZdZ G d de          Z G d de          ZdZ G d de          Z G d  d!e          Z G d" d#e          Z G d$ d%e          Z G d& d'e          Z G d( d)e          Z G d* d+e          Z G d, d-e          Z G d. d/e          Z G d0 d1e          Z G d2 d3e          Z G d4 d5e          Z  G d6 d7e          Z! G d8 d9e          Z" G d: d;e#          Z$d<Z% ej&        d=e            ej&        d=e            ej&        d=e            ej&        d=e            ej&        d=e           dS )>a  
Contains custom errors and warnings.

Errors should derive from Exception or another custom error. Custom errors are
only needed it standard errors, for example ValueError or TypeError, are not
accurate descriptions of the reason for the error.

Warnings should derive from either an existing warning or another custom
warning, and should usually be accompanied by a sting using the format
warning_name_doc that services as a generic message to use when the warning is
raised.
    Nc                       e Zd ZdZdS )PerfectSeparationErrorz<
    Error due to perfect prediction in discrete models
    N__name__
__module____qualname____doc__     _/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/statsmodels/tools/sm_exceptions.pyr   r                	Dr   r   c                       e Zd ZdZdS )MissingDataErrorzI
    Error raised if variables contain missing values when forbidden
    Nr   r
   r   r   r   r      r   r   r   c                       e Zd ZdZdS )X13NotFoundErrorz'
    Error locating the X13 binary
    Nr   r
   r   r   r   r   "   r   r   r   c                       e Zd ZdZdS )X13Errorz,
    Error when running modes using X13
    Nr   r
   r   r   r   r   *   r   r   r   c                       e Zd ZdZd ZdS )
ParseErrorz)
    Error when parsing a docstring.
    c                 X    | j         d         }t          | d          r| d| j         }|S )Nr   	docstringz in )argshasattrr   )selfmessages     r   __str__zParseError.__str__7   s9    )A,4%% 	7 66dn66Gr   N)r   r   r   r	   r   r
   r   r   r   r   2   s-             r   r   c                       e Zd ZdZdS )
X13Warningz.
    Unexpected conditions when using X13
    Nr   r
   r   r   r   r   ?             	Dr   r   c                       e Zd ZdZdS )	IOWarningz
    Resource not deleted
    Nr   r
   r   r   r!   r!   F   r   r   r!   c                       e Zd ZdZdS )ModuleUnavailableWarningz 
    Non-fatal import error
    Nr   r
   r   r   r#   r#   N   r   r   r#   z:
The module {0} is not available. Cannot run in parallel.
c                       e Zd ZdZdS )ModelWarningzD
    Base internal Warning class to simplify end-user filtering
    Nr   r
   r   r   r%   r%   Z   r   r   r%   c                       e Zd ZdZdS )ConvergenceWarningzE
    Nonlinear optimizer failed to converge to a unique solution
    Nr   r
   r   r   r'   r'   a   r   r   r'   z#
Failed to converge on a solution.
c                       e Zd ZdZdS )CacheWriteWarningz9
    Attempting to write to a read-only cached value
    Nr   r
   r   r   r)   r)   m   r   r   r)   c                       e Zd ZdZdS )IterationLimitWarningz5
    Iteration limit reached without convergence
    Nr   r
   r   r   r+   r+   u   r   r   r+   z
Maximum iteration reached.
c                       e Zd ZdZdS )InvalidTestWarningz&
    Test not applicable to model
    Nr   r
   r   r   r-   r-      r   r   r-   c                       e Zd ZdZdS )NotImplementedWarningz/
    Non-fatal function non-implementation
    Nr   r
   r   r   r/   r/      r   r   r/   c                       e Zd ZdZdS )OutputWarningz2
    Function output contains atypical values
    Nr   r
   r   r   r1   r1      r   r   r1   c                       e Zd ZdZdS )DomainWarningzF
    Variables are not compliant with required domain constraints
    Nr   r
   r   r   r3   r3      r   r   r3   c                       e Zd ZdZdS )ValueWarningz,
    Non-fatal out-of-range value given
    Nr   r
   r   r   r5   r5      r   r   r5   c                       e Zd ZdZdS )EstimationWarningz<
    Unexpected condition encountered during estimation
    Nr   r
   r   r   r7   r7      r   r   r7   c                       e Zd ZdZdS )SingularMatrixWarningz;
    Non-fatal matrix inversion affects output results
    Nr   r
   r   r   r9   r9      r   r   r9   c                       e Zd ZdZdS )HypothesisTestWarningz8
    Issue occurred when performing hypothesis test
    Nr   r
   r   r   r;   r;      r   r   r;   c                       e Zd ZdZdS )InterpolationWarningz=
    Table granularity and limits restrict interpolation
    Nr   r
   r   r   r=   r=      r   r   r=   c                       e Zd ZdZdS )PrecisionWarningz4
    Numerical implementation affects precision
    Nr   r
   r   r   r?   r?      r   r   r?   c                       e Zd ZdZdS )SpecificationWarningz-
    Non-fatal model specification issue
    Nr   r
   r   r   rA   rA      r   r   rA   c                       e Zd ZdZdS )HessianInversionWarningz?
    Hessian noninvertible and standard errors unavailable
    Nr   r
   r   r   rC   rC      r   r   rC   c                       e Zd ZdZdS )CollinearityWarningz(
    Variables are highly collinear
    Nr   r
   r   r   rE   rE      r   r   rE   c                       e Zd ZdZdS )PerfectSeparationWarningz*
    Perfect separation or prediction
    Nr   r
   r   r   rG   rG      r   r   rG   c                       e Zd ZdZdS )InfeasibleTestErrorz+
    Test statistic cannot be computed
    Nr   r
   r   r   rI   rI      r   r   rI   z`
recarray support has been removed from statsmodels. Use pandas DataFrames
for structured data.
always)'r	   warnings	Exceptionr   r   r   r   r   Warningr   RuntimeWarningr!   r#   module_unavailable_docUserWarningr%   r'   convergence_docr)   r+   iteration_limit_docr-   r/   r1   r3   r5   r7   r9   r;   r=   r?   rA   rC   rE   rG   RuntimeErrorrI   recarray_exceptionsimplefilterr
   r   r   <module>rV      s    	 	 	 	 	Y 	 	 		 	 	 	 	y 	 	 		 	 	 	 	y 	 	 		 	 	 	 	y 	 	 		 	 	 	 	 	 	 		 	 	 	 	 	 	 		 	 	 	 	 	 	 		 	 	 	 	w 	 	 	 
	 	 	 	 	; 	 	 		 	 	 	 	 	 	 	
	 	 	 	 	 	 	 		 	 	 	 	L 	 	 	 
	 	 	 	 	 	 	 		 	 	 	 	L 	 	 		 	 	 	 	L 	 	 		 	 	 	 	L 	 	 		 	 	 	 	< 	 	 		 	 	 	 	 	 	 		 	 	 	 	L 	 	 		 	 	 	 	L 	 	 		 	 	 	 	< 	 	 		 	 	 	 	| 	 	 		 	 	 	 	< 	 	 		 	 	 	 	l 	 	 		 	 	 	 	, 	 	 		 	 	 	 	| 	 	 		 	 	 	 	, 	 	 	   h - - -  h 2 3 3 3  h 1 2 2 2  h 5 6 6 6  h 2 3 3 3 3 3r   