Fix #293: Add mean/sd summaries to delays and biased delays sessions#406
Merged
Fix #293: Add mean/sd summaries to delays and biased delays sessions#406
Conversation
- Add tidybayes library to both delay sessions - Add mean/sd calculations after model results in delay-distributions.qmd - Add mean/sd calculations for naive, censored, and truncated models in biases-in-delay-distributions.qmd - Correct lognormal standard deviation formula from issue description - Include contextual explanations for better interpretability Closes #293 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add new summarise_lognormal() function to R package - Replace repeated code blocks in sessions with function calls - Simplify session code while maintaining same functionality - Function accepts custom parameter names for flexibility - Update R package documentation and NAMESPACE Note: Formula verified but should double-check lognormal formula for accuracy 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
sbfnk
approved these changes
Jun 18, 2025
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
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
summarise_lognormal()package function to eliminate code duplicationChanges Made
summarise_lognormal()function to nfidd R package with proper documentationtidybayeslibrary to both sessions forspread_drawsfunctionsd = exp(meanlog + 0.5 * sdlog^2) * sqrt(exp(sdlog^2) - 1)Benefits of Package Function Approach
Testing Performed
quarto renderNote
Link to Issue
Closes #293
🤖 Generated with Claude Code