@@ -13,7 +13,7 @@ struct Fitted{D <: Distribution, T <: AbstractFloat}
1313 llk:: T
1414 coefs:: Vector{T}
1515 numerical_hessian:: Matrix{T}
16- pearson_residuals :: Vector{T}
16+ quantile_residuals :: Vector{T}
1717end
1818
1919struct CoefsStats{T <: AbstractFloat }
3737function results (f:: Fitted{D, T} ) where {D, T}
3838 estim_results = eval_coefs_stats (f)
3939 np = length (f. unknowns)
40- jarquebera_p_value = pvalue (JarqueBeraTest (f. pearson_residuals ))
40+ jarquebera_p_value = pvalue (JarqueBeraTest (f. quantile_residuals ))
4141 return EstimationStats {D, T} (f. num_obs, f. llk, f. aic, f. bic, np,
4242 jarquebera_p_value, estim_results)
4343end
@@ -163,8 +163,8 @@ function fit!(gas::Model{D, T}, y::Vector{T};
163163
164164 # Calculate pearson residuals
165165 pearson_res = isnan (initial_params[1 ]) ?
166- pearson_residuals (y, gas) :
167- pearson_residuals (y, gas; initial_params = initial_params)
166+ quantile_residuals (y, gas) :
167+ quantile_residuals (y, gas; initial_params = initial_params)
168168
169169 return Fitted {D, T} (n, unknowns, aic, bic, best_llk, coefs, num_hessian, pearson_res)
170170end
0 commit comments