Skip to content

Commit 7a77727

Browse files
committed
Link extended methods to original
1 parent 2ba3521 commit 7a77727

File tree

10 files changed

+35
-4
lines changed

10 files changed

+35
-4
lines changed

ext/InferenceObjectsMCMCDiagnosticToolsExt/bfmi.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
bfmi(sample_stats::Dataset) -> DimArray
44
55
Calculate the chainwise estimated Bayesian fraction of missing information (BFMI).
6+
7+
See [`MCMCDiagnosticTools.bfmi`](@extref) for more details.
68
"""
79
function MCMCDiagnosticTools.bfmi(data::InferenceObjects.InferenceData)
810
return MCMCDiagnosticTools.bfmi(data.sample_stats)

ext/InferenceObjectsMCMCDiagnosticToolsExt/ess_rhat.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
ess(data::Dataset; kwargs...) -> Dataset
44
55
Calculate the effective sample size (ESS) for each parameter in the data.
6+
7+
For more details and a description of the `kwargs`, see
8+
[`MCMCDiagnosticTools.ess`](@extref).
69
"""
710
function MCMCDiagnosticTools.ess(data::InferenceObjects.InferenceData; kwargs...)
811
return MCMCDiagnosticTools.ess(data.posterior; kwargs...)
@@ -13,6 +16,9 @@ end
1316
rhat(data::Dataset; kwargs...) -> Dataset
1417
1518
Calculate the ``\\widehat{R}`` diagnostic for each parameter in the data.
19+
20+
For more details and a description of the `kwargs`, see
21+
[`MCMCDiagnosticTools.rhat`](@extref).
1622
"""
1723
function MCMCDiagnosticTools.rhat(data::InferenceObjects.InferenceData; kwargs...)
1824
return MCMCDiagnosticTools.rhat(data.posterior; kwargs...)
@@ -35,6 +41,9 @@ end
3541
3642
Calculate the effective sample size (ESS) and ``\\widehat{R}`` diagnostic for each parameter
3743
in the data.
44+
45+
For more details and a description of the `kwargs`, see
46+
[`MCMCDiagnosticTools.ess_rhat`](@extref).
3847
"""
3948
function MCMCDiagnosticTools.ess_rhat(data::InferenceObjects.InferenceData; kwargs...)
4049
return MCMCDiagnosticTools.ess_rhat(data.posterior; kwargs...)

ext/InferenceObjectsMCMCDiagnosticToolsExt/mcse.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
mcse(data::Dataset; kwargs...) -> Dataset
44
55
Calculate the Monte Carlo standard error (MCSE) for each parameter in the data.
6+
7+
For more details and a description of the `kwargs`, see
8+
[`MCMCDiagnosticTools.mcse`](@extref).
69
"""
710
function MCMCDiagnosticTools.mcse(data::InferenceObjects.InferenceData; kwargs...)
811
return MCMCDiagnosticTools.mcse(data.posterior; kwargs...)

ext/InferenceObjectsMCMCDiagnosticToolsExt/rstar.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
)
88
99
Calculate the ``R^*`` diagnostic for the data.
10+
11+
For a description of the `classifier` and `kwargs`, see
12+
[`MCMCDiagnosticTools.rstar`](@extref).
1013
"""
1114
function MCMCDiagnosticTools.rstar(
1215
rng::Random.AbstractRNG, clf, data::InferenceObjects.InferenceData; kwargs...

ext/InferenceObjectsPosteriorStatsExt/hdi.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ end
1010
hdi(data::Dataset; kwargs...) -> Dataset
1111
1212
Calculate the highest density interval (HDI) for each parameter in the data.
13+
14+
For more details and a description of the `kwargs`, see [`PosteriorStats.hdi`](@extref).
1315
"""
1416
function PosteriorStats.hdi(data::InferenceObjects.InferenceData; kwargs...)
1517
return PosteriorStats.hdi(data.posterior; kwargs...)

ext/InferenceObjectsPosteriorStatsExt/loo.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Compute PSIS-LOO from log-likelihood values in `data`.
66
77
If more than one log-likelihood variable is present, then `var_name` must be provided.
88
9+
For more details and a description of the `kwargs`, see [`PosteriorStats.loo`](@extref).
10+
911
# Examples
1012
1113
Calculate PSIS-LOO of a model:

ext/InferenceObjectsPosteriorStatsExt/loo_pit.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ Compute LOO-PIT values using existing normalized log LOO importance weights.
99
the only observed data variable is used.
1010
- `y_pred_name`: Name of posterior predictive variable in `idata.posterior_predictive`.
1111
If not provided, then `y_name` is used.
12-
- `kwargs`: Remaining keywords are forwarded to the base method of `loo_pit`.
12+
- `kwargs`: Remaining keywords are forwarded to the base method
13+
[`PosteriorStats.loo_pit`](@extref).
14+
15+
See [`PosteriorStats.loo_pit`](@extref) for more details.
1316
1417
# Examples
1518
@@ -69,7 +72,9 @@ Compute LOO-PIT from groups in `idata` using PSIS-LOO.
6972
_likelihood_ values. If an array, it must have the same data dimensions as the
7073
corresponding log-likelihood variable. If not provided, then this is estimated using
7174
`ess`.
72-
- `kwargs`: Remaining keywords are forwarded to the base method of `loo_pit`.
75+
- `kwargs`: Remaining keywords are forwarded to [`PosteriorStats.loo_pit`](@extref).
76+
77+
See [`PosteriorStats.loo_pit`](@extref) for more details.
7378
7479
# Examples
7580

ext/InferenceObjectsPosteriorStatsExt/r2_score.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Compute ``R²`` from `idata`, automatically formatting the predictions to the co
1010
- `y_pred_name`: Name of posterior predictive variable in `idata.posterior_predictive`.
1111
If not provided, then `y_name` is used.
1212
13+
See [`PosteriorStats.r2_score`](@extref) for more details.
14+
1315
# Examples
1416
1517
```jldoctest

ext/InferenceObjectsPosteriorStatsExt/summarize.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
summarystats(data::InferenceData; group=:posterior, kwargs...) -> SummaryStats
33
summarystats(data::Dataset; kwargs...) -> SummaryStats
44
5-
Compute default summary statistics for the data using `summarize`.
5+
Compute default summary statistics for the data using
6+
[`PosteriorStats.summarize`](@ref PosteriorStats.summarize(::InferenceData)).
67
"""
78
function StatsBase.summarystats(data::InferenceObjects.InferenceData; kwargs...)
89
return PosteriorStats.summarize(data; kwargs...)
@@ -18,7 +19,7 @@ end
1819
Compute summary statistics for the data using the provided functions.
1920
2021
For verbose variable labels, provide `compat_labels=false`. For details on `stats_funs` and
21-
`kwargs`, see the main `summarize` method.
22+
`kwargs`, see [`PosteriorStats.summarize`](@extref).
2223
2324
# Examples
2425

ext/InferenceObjectsPosteriorStatsExt/waic.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Compute WAIC from log-likelihood values in `data`.
66
77
If more than one log-likelihood variable is present, then `var_name` must be provided.
88
9+
See [`PosteriorStats.waic`](@extref) for more details.
10+
911
# Examples
1012
1113
Calculate WAIC of a model:

0 commit comments

Comments
 (0)