https://github.com/bcallaway11/bmisc

miscellaneous functions I use across projects

https://github.com/bcallaway11/bmisc

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
    4 of 6 committers (66.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

miscellaneous functions I use across projects

Basic Info
Statistics
  • Stars: 7
  • Watchers: 1
  • Forks: 1
  • Open Issues: 2
  • Releases: 0
Created over 9 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog

README.Rmd

---
output: github_document
---



```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)
```

# BMisc 

```{r echo=FALSE, results='asis', message=FALSE, warning=FALSE}
cat(
  badger::badge_cran_download("BMisc", "grand-total", "blue"),
  badger::badge_cran_download("BMisc", "last-month", "blue"),
  badger::badge_cran_release("BMisc", "blue"),
  badger::badge_devel("bcallaway11/BMisc", "blue"),
  badger::badge_cran_checks("BMisc"),
  badger::badge_last_commit("bcallaway11/BMisc")
)
```

BMisc includes miscellaneous functions for working with panel data, quantiles, dealing with formulas, among other things.

## Installation

You can install BMisc from github with:

```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("bcallaway11/BMisc")
```

or from CRAN with:
```{r eval=FALSE}
install.packages("BMisc")
```

## Example 1: Working with distribution functions

The `make_dist` creates a distribution function from a vector of value of the random variable and the corresponding value of its cdf.

```{r example1}
library(BMisc)
y <- rnorm(100)
y <- y[order(y)]
u <- runif(100)
u <- u[order(u)]
F <- make_dist(y, u)
class(F)
# plot(F)
```

## Example 2: Working with panel data
Another useful function is the `make_balanced_panel` function which drops observations from a panel dataset which are not available in all time periods.

```{r example2}
id <- rep(seq(1, 100, 1), 2) ## individual ids for setting up a two period panel
t <- rep(seq(1, 2), 100) ## time periods
y <- rnorm(200) ## outcomes
dta <- data.frame(id = id, t = t, y = y) ## make into data frame
dta <- dta[-7, ] ## drop the 7th row from the dataset (which creates an unbalanced panel)
nrow(dta)
dta <- make_balanced_panel(dta, idname = "id", tname = "t")
nrow(dta) ## now all the observations with missing data in any period are dropped
```

Owner

  • Login: bcallaway11
  • Kind: user
  • Location: Athens, GA
  • Company: University of Georgia

Brantly Callaway, Department of Economics, University of Georgia

GitHub Events

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

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 98
  • Total Committers: 6
  • Avg Commits per committer: 16.333
  • Development Distribution Score (DDS): 0.541
Past Year
  • Commits: 14
  • Committers: 2
  • Avg Commits per committer: 7.0
  • Development Distribution Score (DDS): 0.143
Top Committers
Name Email Commits
Brantly Callaway b****y@u****u 45
Brantly Callaway b****y@g****m 26
Brantly Callaway b****y@t****u 18
Achim Zeileis A****s@u****t 3
Kyle Butts b****6@g****m 3
Brantly Callaway b****w@o****u 3
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 2
  • Total pull requests: 5
  • Average time to close issues: N/A
  • Average time to close pull requests: 21 days
  • Total issue authors: 2
  • Total pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 2.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • andersen-hecon (1)
  • yuqinkomodo (1)
Pull Request Authors
  • kylebutts (3)
  • zeileis (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 4,489 last-month
  • Total docker downloads: 21,689
  • Total dependent packages: 4
  • Total dependent repositories: 8
  • Total versions: 14
  • Total maintainers: 1
cran.r-project.org: BMisc

Miscellaneous Functions for Panel Data, Quantiles, and Printing Results

  • Versions: 14
  • Dependent Packages: 4
  • Dependent Repositories: 8
  • Downloads: 4,489 Last month
  • Docker Downloads: 21,689
Rankings
Docker downloads count: 0.6%
Downloads: 7.8%
Dependent packages count: 9.3%
Dependent repos count: 10.5%
Average: 11.9%
Forks count: 21.0%
Stargazers count: 22.0%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.1.0 depends
  • Rcpp * imports
  • data.table * imports
  • plm * suggests
  • testthat >= 3.0.0 suggests
  • tibble * suggests
revdep/library/BMisc/new/BMisc/DESCRIPTION cran
  • R >= 2.1.0 depends
  • Rcpp * imports
  • tidyr * imports
  • plm * suggests
  • testthat >= 3.0.0 suggests
  • tibble * suggests
revdep/library/BMisc/old/BMisc/DESCRIPTION cran
  • R >= 2.1.0 depends
  • tidyr * imports
  • plm * suggests