Skip to content

simglm

1.0.0Package record

Simulate Models Based on the Generalized Linear Model

0packages depend
4.8Kdownloads / year
68.9%test coverage
13/13flavors OK

Overview

About

Simulates regression models, including both simple regression and generalized linear mixed models with up to three level of nesting. Power simulations that are flexible allowing the specification of missing data, unbalanced designs, and different random error distributions are built into the package.

Changes in 1.0.0

This major release accompanies the publication of the simglm book. It

expands the package's simulation and power-analysis capabilities and aligns

the package API with the examples presented in the book.

New outcome and data-generation options

  • Added support for ordinal and multinomial outcomes.
  • Added floor and ceiling controls for continuous outcomes.
  • Changed factor simulation to preserve the declared order of levels rather than sorting levels alphabetically.
  • Added force_equal = TRUE for generating equally represented factor levels.
  • Expanded support for unbalanced designs and flexible sample-size specifications.
  • Generalized cross-classified data generation through multiple-membership simulation.
Show all changes in 1.0.0Hide the rest of the changes in 1.0.0
  • Added post-processing and outcome aggregation tools.
  • Extended formula parsing and simulation support for list-based specifications and multiple-equation workflows.

Power analysis and model fitting

  • Reworked the power-simulation framework, including improved support for between- and within-subject designs.
  • Added type S and type M error summaries.
  • Added robust_model() for models using robust standard errors.

Propensity score workflows

  • Added simulate_propensity() for generating non-random treatment assignment.
  • Added fit_propensity() and support for covariate adjustment, inverse probability weighting (ipw), and stabilized balancing weights (sbw).
  • Added support, examples, and tests for multilevel propensity score designs.

Documentation, testing, and maintenance

  • Expanded the vignettes and documentation for missing-data, factor, ordinal, multinomial, post-processing, power, and propensity score workflows.
  • Added lightweight compatibility tests based on code published in the book.
  • The package now requires R 4.1.0 or later because examples and simulation workflows use the native R pipe (|>)
  • Removed Matrix from package imports and added gtools, sandwich, and lmtest.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.9 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.0
READMEYes · 281 wordsVignettesYes · 4 · dynamicNEWSYes · 100% structured · mentions 1.0.0Citation fileNo
Help pages
35 (1 internal)includes a package overview page
Examples that run
no examples
Exported functions with examples
0%
Documented parameters
100%
Return-value docs
6%
Help pages citing references
0%

Downloads

4.8K
CRAN downloads in the past year
Rank #6,517 · ~13/day · ~397/mo
Daily download trend is not available in this view yet.
51630 days
1.3K90 days
4.8K1 year
Compare downloads with other packages →
Also on106 r2u1 autocran100 c2d4u

Repository

46Stars
11Forks
2Open issues
0Open PRs
3Releases
1,000Commits
4Commit identities
rsimulationpower
1,000 commits · Last activity 2026-09-01 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
82%
Median days to close, 50 most recently updated closed issues
30
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-09-11 · 432026-07-07 · 46
PracticesBeta

10 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/lebebr01/simglm on 2026-10-25.

Continuous integration (3)
GitHub ActionsR CMD check workflowAppVeyor

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-09-01 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

Installing simglm adds 32 packages (18 with compiled code, 22 MB of source tarballs). Heaviest: stringi 11 MB, sandwich 1.4 MB, vctrs 1.0 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.5.0 (2017)
Releases (10)

Pick two releases to compare their code metrics.

  • 1.0.0Latest
    record
    2026-09-01 · current release · diff ↗ ·
    removed 1 export
    parse_crossclass
    added 8 exports
    aggregate_outcome_by_level, compute_density_values, fit_propensity, parse_multiplemember, parse_varyarguments_w, robust_model, sim_ordinal2, simulate_propensity
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • unarchivedReturned to CRAN
    2022-02-07
  • 0.8.9
    record
    2022-02-07 · diff ↗
  • archivedRemoved from CRAN
    2022-02-06
    check problems were not corrected in time
  • 0.8.8
    record
    2021-08-09 · diff ↗ ·
    removed 33 exports
    corr_variables, cross_class, data_glm_nested, data_glm_nested3, data_glm_single, data_reg_nested, data_reg_nested3, data_reg_single, sim_continuous, sim_err_nested, sim_err_single, sim_factor, sim_fixef_nested, sim_fixef_nested3, sim_fixef_single, sim_glm, sim_glm_nested, sim_glm_nested3, sim_glm_single, sim_knot, sim_pow, sim_pow_glm, sim_pow_glm_nested, sim_pow_glm_nested3, sim_pow_glm_single, sim_pow_nested, sim_pow_nested3, sim_pow_single, sim_rand_eff, sim_reg and 3 more
    added 3 exports
    correlate_variables, parse_correlation, simulate_knot
  • R
    R 4.1.0 released · 2021-05-18
  • 0.8.0
    record
    2020-06-12 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.7.4
    record
    2019-05-31 · diff ↗ ·
    added 1 export
    simulate_heterogeneity
  • R
    R 3.6.0 released · 2019-04-26
  • 0.7.2
    record
    2019-01-23 · diff ↗
Show 6 earlier eventsHide 6 earlier events
  • 0.7.1
    record
    2018-07-25 · diff ↗
  • 0.7.0
    record
    2018-06-02 · diff ↗ ·
    added 21 exports
    compute_statistics, cross_class, extract_coefficients, generate_missing, generate_response, model_fit, parse_crossclass, parse_formula, parse_power, parse_randomeffect, parse_varyarguments, replicate_simulation, sim_continuous2, sim_factor2, sim_knot, sim_time, simglm, simulate_error, simulate_fixed, simulate_randomeffect, transform_outcome
  • R
    R 3.5.0 released · 2018-04-23
  • 0.6.0
    record
    2017-07-24 · diff ↗
  • 0.5.0
    record
    2017-05-25
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-05-25
Total releases
10 / 9 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
590 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("simglm")
LeBeau, B. (2026). simglm: Simulate Models Based on the Generalized Linear Model (Version 1.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.simglm

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for simglm version 1.0.0 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy