simglm

Simulate regression models

https://github.com/lebebr01/simglm

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 4 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.2%) to scientific vocabulary

Keywords

power r simulation
Last synced: 6 months ago · JSON representation

Repository

Simulate regression models

Basic Info
Statistics
  • Stars: 43
  • Watchers: 8
  • Forks: 12
  • Open Issues: 5
  • Releases: 3
Topics
power r simulation
Created about 13 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License

README.Rmd

# `simglm`: Tidy simulation and power analyses

[![R build status](https://github.com/lebebr01/simglm/workflows/R-CMD-check/badge.svg)](https://github.com/lebebr01/simglm/actions?workflow=R-CMD-check)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/lebebr01/simglm?branch=main&svg=true)](https://ci.appveyor.com/project/lebebr01/simglm)
[![codecov.io](https://codecov.io/github/lebebr01/simglm/coverage.svg?branch=main)](https://codecov.io/github/lebebr01/simglm?branch=main)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/simglm)](https://cran.r-project.org/package=simglm)


## Package Installation
This package can be directly installed through CRAN:

```{r cran_install, eval = FALSE}
install.packages("simglm")
```

The development version of the package can be installed by using the devtools package.

```{r install, eval=FALSE}
library(devtools)
install_github("lebebr01/simglm")
```

## Introduction to the simglm package
The best way to become oriented with the `simglm` package is through the package vignette. There are two ways to get to the vignettes (both will open a browser to view the vignette). Below is an example loading the "Intro" vignette directly:

```{r vignette, eval=FALSE}
browseVignettes()
vignette("Intro", package = "simglm")
```

Note: If you install the development version of the package, you may need to tell R to build the vignettes when installing the `simglm` package by doing the following:
```{r install2, eval = FALSE}
install_github("lebebr01/simglm", build_vignettes = TRUE)
```

## Features

A flexible suite of functions to simulate nested data.  
Currently supports the following features:

* Longitudinal data simulation
* Three levels of nesting
* Specification of distribution of random components (random effects and random error)
* Specification of serial correlation
* Specification of the number of variables
    + Ability to add time-varying covariates
    + Specify the mean and variance of fixed covariate variables
    + Specify floor or ceiling aspects of continuous attributes
    + Factor variable simulation 
    + Ordinal variable simulation
* Generation of mixture normal distributions
* Cross sectional data simulation
* Single level simulation
* Power by simulation
    + Vary parameters for a factorial simulation design.
    + Can vary model fitted to the data to misspecify directly.
* Simulation of missing data
* Include other distributions for covariate simulation.
* Continuous, Logistic (dichotomous), Poisson (count), ordinal (rating scale) outcome variables.
* Cross classified simulation and power

## Bugs/Feature Requests

Bugs and feature requests are welcomed. Please track these on GitHub here: . I'm also open to pull requests.

Enjoy!

Owner

  • Name: Brandon LeBeau
  • Login: lebebr01
  • Kind: user
  • Location: Iowa City

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 865
  • Total Committers: 4
  • Avg Commits per committer: 216.25
  • Development Distribution Score (DDS): 0.014
Past Year
  • Commits: 149
  • Committers: 2
  • Avg Commits per committer: 74.5
  • Development Distribution Score (DDS): 0.007
Top Committers
Name Email Commits
Brandon LeBeau l****1@g****m 853
unknown b****b@E****u 10
Brandon LeBeau b****u@w****u 1
Will Hopper w****0@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 94
  • Total pull requests: 14
  • Average time to close issues: 4 months
  • Average time to close pull requests: 1 day
  • Total issue authors: 24
  • Total pull request authors: 3
  • Average comments per issue: 1.09
  • Average comments per pull request: 0.5
  • Merged pull requests: 12
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • lebebr01 (65)
  • jknowles (4)
  • SondreNilsen (2)
  • HenrikBengtsson (2)
  • bwiernik (2)
  • DInfanger (1)
  • TaylorAndrew (1)
  • mkissine (1)
  • agstn (1)
  • Radibor (1)
  • K3JT (1)
  • romainfrancois (1)
  • DominiqueMakowski (1)
  • JanSouren (1)
  • lpp22 (1)
Pull Request Authors
  • lebebr01 (15)
  • bwiernik (1)
  • wjhopper (1)
Top Labels
Issue Labels
enhancement (36) bug (12) Documentation (4) Shiny (3) question (2) tests (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 301 last-month
  • Total docker downloads: 41,971
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 9
  • Total maintainers: 1
cran.r-project.org: simglm

Simulate Models Based on the Generalized Linear Model

  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 301 Last month
  • Docker Downloads: 41,971
Rankings
Docker downloads count: 0.6%
Forks count: 5.8%
Stargazers count: 7.5%
Average: 16.8%
Dependent repos count: 23.8%
Dependent packages count: 28.6%
Downloads: 34.2%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.6.0 depends
  • broom * imports
  • dplyr * imports
  • future.apply * imports
  • methods * imports
  • purrr * imports
  • rlang * imports
  • stats * imports
  • covr * suggests
  • e1071 * suggests
  • future * suggests
  • geepack * suggests
  • ggplot2 * suggests
  • knitr * suggests
  • lme4 * suggests
  • nlme * suggests
  • rmarkdown * suggests
  • shiny * suggests
  • splines * suggests
  • testthat * suggests
  • tidyr * suggests
.github/workflows/covr.yml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/main.yml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yml actions
  • JamesIves/github-pages-deploy-action 4.1.4 composite
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite