How sebasquirarte/biostats works
Project type and purpose
• This is an R package (“biostats”)—an analytical toolbox for biostatistics
and clinical data analysis. It exposes a collection of functions for
simulation (clinical_data), exploratory data analysis (summary_table,
normality, missing_values, outliers), sample‐size/power calculations
(sample_size, sample_size_range), statistical inference (omnibus,
effect_measures), and data visualization (plot_bar, plot_line, plot_hist,
plot_box, plot_corr). It is intended as both a professional toolkit and
educational resource, distributed via CRAN/GitHub.
File structure
• Top‐level packaging artifacts: DESCRIPTION, NAMESPACE, LICENSE, NEWS.md,
README.Rmd/README.md, .Rbuildignore, .gitignore.
• R/: contains .R scripts—each function or helper in its own file.
• man/: automatically generated Rd documentation for each exported function,
plus figures.
• tests/: testthat framework—tests/testthat.R plus individual
test-*.R files.
• .github/workflows/: CI pipelines for R‐CMD‐check, rhub, test‐coverage.
• cran-comments.md: guidance for CRAN submission.
• Namespace implicitly defines exported functions vs. internal utils.
README for additional insights
• The README.Rmd describes function categories (EDA, sample size, inference,
visualization), usage examples, and badges indicating CI, coverage,
downloads.
module relationships, data flows, and integration points.
Elements
• Clear labels for each component (modules, utilities, tests, CI).
• From User to biostats package modules (function invocation).
• Between modules and shared utils.
• From tests to modules.
• From CI workflows to repository → build/test → CRAN.
• Rectangles for modules.
• Development layer (R scripts, docs, tests).
• Deployment layer (build, CI, CRAN/GitHub).
• Runtime layer (user, R console).
Detailed capturing of essential elements
utilities.
• Data flows: raw data → EDA → inference → visualization.
• Test coverage: tests exercising each module → coverage reports.
badge updates.
• Package metadata dependency resolution (DESCRIPTION →
install.packages).
how biostats is structured internally, how a user and CI interact with it,
and how it is distributed—providing an accurate, technology‐aware view
tailored to this R‐based analytical toolbox.