All Projects → csgillespie → Powerlaw

csgillespie / Powerlaw

This package implements both the discrete and continuous maximum likelihood estimators for fitting the power-law distribution to data. Additionally, a goodness-of-fit based approach is used to estimate the lower cutoff for the scaling region.

Programming Languages

r
7636 projects

Labels

Projects that are alternatives of or similar to Powerlaw

Onnx R
R Interface to Open Neural Network Exchange (ONNX)
Stars: ✭ 31 (-60.76%)
Mutual labels:  cran
Labelled
Manipulating labelled vectors in R
Stars: ✭ 45 (-43.04%)
Mutual labels:  cran
Bayesiantools
General-Purpose MCMC and SMC Samplers and Tools for Bayesian Statistics
Stars: ✭ 66 (-16.46%)
Mutual labels:  cran
Paralleldist
R Package: Parallel Distance Matrix Computation using Multiple Threads
Stars: ✭ 37 (-53.16%)
Mutual labels:  cran
Fpp3 Package
All data sets required for the examples and exercises in the book "Forecasting: principles and practice" (3rd ed, 2020) by Rob J Hyndman and George Athanasopoulos <http://OTexts.org/fpp3/>. All packages required to run the examples are also loaded.
Stars: ✭ 43 (-45.57%)
Mutual labels:  cran
Blavaan
An R package for Bayesian structural equation modeling
Stars: ✭ 51 (-35.44%)
Mutual labels:  cran
Scottknottesd
The Scott-Knott Effect Size Difference (ESD) test
Stars: ✭ 8 (-89.87%)
Mutual labels:  cran
Volume approximation
Practical volume computation and sampling in high dimensions
Stars: ✭ 75 (-5.06%)
Mutual labels:  cran
Liger
Lightweight Iterative Gene set Enrichment in R
Stars: ✭ 44 (-44.3%)
Mutual labels:  cran
Fredr
An R client for the Federal Reserve Economic Data (FRED) API
Stars: ✭ 61 (-22.78%)
Mutual labels:  cran
Configr
Implements the JSON, INI, YAML and TOML parser, for R setting and writing of configuration file.
Stars: ✭ 38 (-51.9%)
Mutual labels:  cran
Intrval
Relational Operators for Intervals
Stars: ✭ 41 (-48.1%)
Mutual labels:  cran
Foghorn
📢 🚢 R package to summarize CRAN Check Results in the Terminal
Stars: ✭ 52 (-34.18%)
Mutual labels:  cran
Rcppexamples
Examples of using Rcpp to interface R and C++
Stars: ✭ 33 (-58.23%)
Mutual labels:  cran
Pkgsearch
Search R packages on CRAN
Stars: ✭ 73 (-7.59%)
Mutual labels:  cran
Ggrepel
📍 Repel overlapping text labels away from each other.
Stars: ✭ 853 (+979.75%)
Mutual labels:  cran
Seurat
R toolkit for single cell genomics
Stars: ✭ 1,053 (+1232.91%)
Mutual labels:  cran
Rsqlserver
SQL Server DBI for R, based on the jTDS driver
Stars: ✭ 76 (-3.8%)
Mutual labels:  cran
Flowr
Robust and efficient workflows using a simple language agnostic approach
Stars: ✭ 73 (-7.59%)
Mutual labels:  cran
Modules
Modules in R
Stars: ✭ 54 (-31.65%)
Mutual labels:  cran

The poweRlaw package

Build Status codecov.io Downloads CRAN

This package implements both the discrete and continuous maximum likelihood estimators for fitting the power-law distribution to data using the methods described in Clauset et al, 2009. It also provides function to fit log-normal and Poisson distributions. Additionally, a goodness-of-fit based approach is used to estimate the lower cut-off for the scaling region.

The code developed in this package was influenced from the python and R code found at Aaron Clauset’s website. In particular, the R code of Laurent Dubroca and Cosma Shalizi.

To cite this package in academic work, please use:

Gillespie, C. S. “Fitting heavy tailed distributions: the poweRlaw package.” Journal of Statistical Software, 64(2) 2015. (pdf).

For a different way of handling powerlaw type distributions, see

Gillespie, C.S. " Estimating the number of casualties in the American Indian war: a Bayesian analysis using the power law distribution." Annals of Applied Statistics, 2017. (pdf)

Installation

This package is hosted on CRAN and can be installed in the usual way:

install.packages("poweRlaw")

Alternatively, the development version can be install from from github using the devtools package:

install.packages("devtools")
devtools::install_github("csgillespie/poweRlaw")

Getting Started

To get started, load the package

library("poweRlaw")

then work through the four vignettes (links to the current CRAN version):

Alternatively, you can access the vignettes from within the package:

browseVignettes("poweRlaw")

The plots below show the line of best fit to the Moby Dick and blackout data sets (from Clauset et al, 2009). Cumulative CDF of the Moby Dick and blackout data sets with line of best fit.

Other information

  • If you have any suggestions or find bugs, please use the github issue tracker
  • Feel free to submit pull requests

Development of this package was supported by Jumping Rivers

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].