• Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    R
  • Created almost 12 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.

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

More Repositories

1

efficientR

Efficient R programming: a book
TeX
718
star
2

rprofile

My .Rprofile set-up
R
50
star
3

efficient

The associated R package for Efficient R programming
R
46
star
4

benchmarkme

Crowd sourced benchmarking
R
40
star
5

roxygen2Comment

An Rstudio addin for adding and remove roygen2 comment
R
26
star
6

travis-examples

R
23
star
7

addinmanager

RStudio addin management made easy
R
19
star
8

rtypeform

An R interface to the 'typeform' API.
R
13
star
9

bmc-microarray

This repo contains the knitr code for the paper: Gillespie, C. S., et al, 2010. Analysing yeast time course microarray data using BioConductor: a case study using yeast2 Affymetrix arrays BMC Research Notes, 3:81.
TeX
13
star
10

statslang

Slides and code for http://www.statslife.org.uk/events/events-calendar/eventdetail/284/-/statistical-computing-languages
TeX
8
star
11

raddins

A collection of RStudio addins
R
7
star
12

renamer

R
6
star
13

In-silico-Systems-Biology

The latex and R code used the in stochastic simulation book chapter in "In silico Systems Biology: A systems-based approach to understanding biological processes".
TeX
5
star
14

dratTravis

Shell
4
star
15

benchmarkme-data

R package containing data from past benchmarks
R
3
star
16

talks

A list of recent talks
JavaScript
3
star
17

plmcmc

R
2
star
18

minifyHTML

A binding the Javascript-based HTML compressor/minifier
R
2
star
19

illumina-analysis

This repository contains the knitr/latex source, graphics and R code used in book chapter in Cockell, S, Bashton, M, Gillespie, CS. Bioconductor tools for microarray data analysis. In: Microarray Image and Data Analysis: Theory and Practice. CRC Press.
TeX
1
star
20

hybrid-pmcmc

Fortran
1
star
21

riemann-manifold

TeX
1
star
22

expt_design

Code for Efficient construction of Bayes optimal designs for stochastic process models.
R
1
star
23

dotfiles

My dotfiles
Shell
1
star
24

plbayes

Code and data from the paper Estimating the number of casualties in the American Indian war: a Bayesian analysis using the power law distribution
R
1
star
25

abcpmcmc

R
1
star
26

githubactions

My github actions playground. Will be deleted
R
1
star
27

SparseEm

R
1
star