Repository navigation
RXR-3368: Minor documentation fixes to better reflect code. - #68
Merged
Merged
Conversation
README.md and CLAUDE.md described `ls` as "a special case of MAP Bayesian with (almost) fully flat prior", but get_map_estimates() actually swaps in calc_ofv_ls(), an objective function with no prior/omega term at all, and forces error = list(prop = 0, add = 1) regardless of user input (R/get_map_estimates.R). That description actually matches `type = "pls"` (parse_weight_prior.R), which the docs had mislabeled as `map_flat_prior` - not a real argument value. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
|
While we're here, would it be worth it to update the function argument too? Line 126 in 2f028e9 into: and then add an arg.match in the function body. |
# Conflicts: # CLAUDE.md
Contributor
Author
I made the suggested change, since I think this is safer for consumers of this package. In between my opening this PR and my last commit, the CLAUDE.md file was replaced with the more generic AGENTS.md file. I have merged master into this branch and ensured AGENTS.md correctly describes the different estimation types. |
mccarthy-m-g
approved these changes
Nov 20, 2026
mccarthy-m-g
left a comment
Contributor
There was a problem hiding this comment.
lgtm! Just one little suggestion:
Co-authored-by: Michael McCarthy <51542091+mccarthy-m-g@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We listed map, map_flat_prior, and ls, however the actual types accepted are map, pls, ls. Additionally, ls was inappropriately described: rather than acting as a special case of flattened priors (which is how "pls" works), ls calls a separate OFV function, which does not depend on error distributions at all and is appropriately a least squares method.