Repository navigation
Fix docs describing the ls estimation method - #67
Closed
jasmineirx wants to merge 1 commit into
Closed
jasmineirx wants to merge 1 commit into
jasmineirx wants to merge 1 commit into
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>
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.
Summary
lsas "a special case of MAP Bayesian with (almost) fully flat prior." That's not what the code does: whentype = "ls",get_map_estimates()swaps incalc_ofv_ls(), an objective function with no prior/omega term at all, and forceserror <- list(prop = 0, add = 1)regardless of what the caller passes in (R/get_map_estimates.R).type = "pls"(seeparse_weight_prior.R, which hardcodesweight_prior_var <- 0.001for that type), which the docs had mislabeled asmap_flat_prior— not a real argument value anywhere in the code.methodargument —methodis actually the separateoptim()algorithm argument (e.g.BFGS); the estimation type is selected viatype.Test plan
R/get_map_estimates.R,R/calc_ofv_ls.R,R/calc_ofv_map.R,R/parse_weight_prior.R, andR/check_inputs.Rto confirm the corrected wording matches actual behavior.🤖 Generated with Claude Code