@@ -13,7 +13,7 @@ struct Fitted{D <: Distribution, T <: AbstractFloat}
13
13
llk:: T
14
14
coefs:: Vector{T}
15
15
numerical_hessian:: Matrix{T}
16
- pearson_residuals :: Vector{T}
16
+ quantile_residuals :: Vector{T}
17
17
end
18
18
19
19
struct CoefsStats{T <: AbstractFloat }
37
37
function results (f:: Fitted{D, T} ) where {D, T}
38
38
estim_results = eval_coefs_stats (f)
39
39
np = length (f. unknowns)
40
- jarquebera_p_value = pvalue (JarqueBeraTest (f. pearson_residuals ))
40
+ jarquebera_p_value = pvalue (JarqueBeraTest (f. quantile_residuals ))
41
41
return EstimationStats {D, T} (f. num_obs, f. llk, f. aic, f. bic, np,
42
42
jarquebera_p_value, estim_results)
43
43
end
@@ -163,8 +163,8 @@ function fit!(gas::Model{D, T}, y::Vector{T};
163
163
164
164
# Calculate pearson residuals
165
165
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)
168
168
169
169
return Fitted {D, T} (n, unknowns, aic, bic, best_llk, coefs, num_hessian, pearson_res)
170
170
end
0 commit comments