Skip to content

fix: correct BayesianWAgg docs — posterior mean, not median - #104

Open
LeonidasZhak wants to merge 1 commit into
metamelb-repliCATS:masterfrom
LeonidasZhak:fix/bayesianwagg-docs-mean-not-median
Open

fix: correct BayesianWAgg docs — posterior mean, not median#104
LeonidasZhak wants to merge 1 commit into
metamelb-repliCATS:masterfrom
LeonidasZhak:fix/bayesianwagg-docs-mean-not-median

Conversation

@LeonidasZhak

Copy link
Copy Markdown

Fixes #80

Problem

The roxygen documentation for BayesianWAgg() on line 42 of R/BayesianWAgg.R states:

After obtaining the median of the posterior distribution of μ_c

But the implementation at line 417 selects the mean column from the JAGS summary output:

dplyr::select(mean)

JAGS's `` provides both mean and median (50%); the code uses `mean`.

Fix

Changed "median" → "mean" in:

  • R/BayesianWAgg.R (roxygen source, line 42)
  • man/BayesianWAgg.Rd (generated Rd, line 76)

Validation

  • Verified the code path: CSsamplesdplyr::select(mean)dplyr::rename(aggregated_judgement = mean)
  • No other references to "median" remain in the function documentation
  • Single-word change, no behavioral impact

The code selects the 'mean' column from the JAGS summary output
(dplyr::select(mean)), but the documentation incorrectly stated
'After obtaining the median of the posterior distribution'.
Changed to 'mean' in both roxygen source and generated Rd file.

Fixes metamelb-repliCATS#80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify BayesianWAgg docs that *median* not *mean* is returned from posterior distribution

1 participant