I am trying to add more documentation to bmd while testing and validating the package.
bmd pull request
Suggestions for Improvement
Documentation Improvements
-
Comprehensive Vignettes:
- Create step-by-step tutorials for common workflows
- Include real-world examples for different response types
- Provide guidance on model selection and interpretation
-
Function Documentation:
- Add more detailed examples to each function's documentation
- Clarify parameter choices and their implications
- Include references to statistical literature for advanced methods
-
Theoretical Background:
- Add more documentation explaining the statistical theory behind different BMD definitions
- Explain when to use different confidence interval methods
- Provide guidance on interpreting results
Code Structure and Functionality
-
Code Organization:
- Refactor code to improve consistency in function naming and parameter order
- Group related functions into coherent files rather than having one function per file
- Implement S3 methods consistently across all object types
-
Error Handling:
- Improve error messages to be more informative and actionable
- Add input validation for major functions
- Implement warning messages for potentially problematic parameter combinations
-
Performance Optimization:
- Optimize computationally intensive functions (especially bootstrapping)
- Implement parallel processing options for bootstrap procedures
- Consider using Rcpp for performance-critical calculations
New Features
-
Expanded Model Types:
- Add support for hormetic/non-monotonic dose-response models
- Implement Bayesian dose-response models (brms ?)
- Add time-to-event models for survival data
-
Model Diagnostics:
- Add comprehensive model diagnostic functions
- Implement goodness-of-fit tests specific to dose-response models
- Add residual analysis tools for different response types
-
Export Capabilities:
- Add functions to export results in formats compatible with regulatory submissions (maybe for drcHelper)
-
Other thoughts
- Develop interfaces to toxicological databases
Technical Improvements
-
Testing Framework:
- Implement comprehensive unit tests for all functions
- Add integration tests for common workflows
- Create benchmark tests for performance-critical functions
-
Documentation Generation:
- Use roxygen2 consistently for all documentation
- Include mathematical formulas in documentation using LaTeX
- Generate a package website using pkgdown
I am trying to add more documentation to bmd while testing and validating the package.
bmd pull request
Suggestions for Improvement
Documentation Improvements
Comprehensive Vignettes:
Function Documentation:
Theoretical Background:
Code Structure and Functionality
Code Organization:
Error Handling:
Performance Optimization:
New Features
Expanded Model Types:
Model Diagnostics:
Export Capabilities:
Other thoughts
Technical Improvements
Testing Framework:
Documentation Generation: