We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ff13c5 commit 4f02efaCopy full SHA for 4f02efa
Project.toml
@@ -22,7 +22,7 @@ DataStructures = "0.10, 0.11, 0.12, 0.13, 0.14, 0.17, 0.18"
22
LogExpFunctions = "0.3"
23
Missings = "0.3, 0.4, 1.0"
24
SortingAlgorithms = "0.3, 1.0"
25
-StatsAPI = "1"
+StatsAPI = "1.2"
26
julia = "1"
27
28
[extras]
docs/Project.toml
@@ -1,6 +1,7 @@
1
[deps]
2
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
4
+StatsAPI = "82ae8749-77ed-4fe6-ae5f-f523153014b0"
5
6
[compat]
7
Documenter = "0.24"
docs/make.jl
@@ -1,4 +1,4 @@
-using Documenter, StatsBase, Statistics, Random, LinearAlgebra
+using Documenter, StatsBase, StatsAPI, Statistics, Random, LinearAlgebra
# Workaround for JuliaLang/julia/pull/28625
if Base.HOME_PROJECT[] !== nothing
@@ -7,7 +7,7 @@ end
8
makedocs(
9
sitename = "StatsBase.jl",
10
- modules = [StatsBase],
+ modules = [StatsBase, StatsAPI],
11
pages = ["index.md",
12
"weights.md",
13
"scalarstats.md",
@@ -29,4 +29,4 @@ makedocs(
29
30
deploydocs(
31
repo = "github.com/JuliaStats/StatsBase.jl.git"
32
-)
+)
docs/src/statmodels.md
# Abstraction for Statistical Models
-This package defines an abstract type `StatisticalModel`, and an abstract subtype `RegressionModel`.
+[StatsAPI.jl](https://github.com/JuliaStats/StatsAPI.jl) defines an abstract type `StatisticalModel`,
+and an abstract subtype `RegressionModel`. They are both extended by StatsBase, and documented here.
Particularly, instances of `StatisticalModel` implement the following methods.
@@ -30,7 +31,7 @@ rss
score
stderror
33
vcov
-weights(::StatisticalModel)
34
+weights
35
```
36
37
`RegressionModel` extends `StatisticalModel` by implementing the following additional methods.
@@ -52,4 +53,4 @@ residuals
52
53
An exception type is provided to signal convergence failures during model estimation:
54
```@docs
55
ConvergenceException
-```
56
+```
docs/src/weights.md
@@ -149,5 +149,5 @@ fweights
149
pweights
150
eweights
151
uweights
152
-weights
+weights(vs::AbstractArray{<:Real})
153
src/StatsBase.jl
@@ -20,7 +20,15 @@ import LinearAlgebra: BlasReal, BlasFloat
20
import Statistics: mean, mean!, var, varm, varm!, std, stdm, cov, covm,
21
cor, corm, cov2cor!, unscaled_covzm, quantile, sqrt!,
median, middle
-import StatsAPI: pairwise, pairwise!
+using StatsAPI: StatisticalModel, RegressionModel
+import StatsAPI: pairwise, pairwise!, params, params!,
+ fitted, response, responsename, meanresponse, modelmatrix,
+ crossmodelmatrix, leverage, cooksdistance, residuals, predict,
+ predict!, dof_residual, coef, coefnames, coeftable, confint,
+ deviance, islinear, nulldeviance, loglikelihood, nullloglikelihood,
+ loglikelihood, loglikelihood, score, nobs, dof, mss, rss,
+ informationmatrix, stderror, vcov, weights, isfitted, fit, fit!,
+ aic, aicc, bic, r2, r², adjr2
## tackle compatibility issues
0 commit comments