We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 947ab45 commit 4daac87Copy full SHA for 4daac87
1 file changed
src/diagnostics.jl
@@ -277,11 +277,13 @@ Calculate Hat matrix of dimensions n x n for a given regression setting with n o
277
- `setting::RegressionSetting`: A regression setting object.
278
279
# Examples
280
+
281
```julia-repl
282
julia> reg = createRegressionSetting(@formula(calls ~ year), phones);
283
julia> size(hatmatrix(reg))
284
285
(24, 24)
286
+```
287
"""
288
function hatmatrix(setting::RegressionSetting)::AbstractMatrix{Float64}
289
X = designMatrix(setting)
@@ -546,6 +548,7 @@ Calculate Mahalanobis distances.
546
548
- `covmatrix::AbstractMatrix{Float64}`: Optional covariance matrix of data.
547
549
550
# References
551
552
Mahalanobis, Prasanta Chandra. "On the generalized distance in statistics."
553
National Institute of Science of India, 1936.
554
0 commit comments