Statistical Models for Word Frequency Distributions
Overview
Statistical models and utilities for the analysis of word frequency distributions. The utilities include functions for loading, manipulating and visualizing word frequency data and vocabulary growth curves. The package also implements several statistical models for the distribution of word frequencies in a population. (The name of this package derives from the most famous word frequency distribution, Zipf's law.)
- parallelization of lnre.bootstrap(), using forked processed on Unix-like platforms or with a properly initialized snow cluster (based on the 'parallel' package)
- bootstrapped confidence intervals in lnre() are speeded up substantially
- additional productivity measures and some other improvements to productivity.measures()
- lnre.productivity.measures() computes approximate expectations for samples from LNRE population or estimates sampling distribution by parametric bootstrapping
- plot.tfl() now also plots relative frequencies (pmw) for comparison across different sample sizes, as well as population distributions described by LNRE models
- plot method (plot.lnre) for LNRE models, showing either the log-transformed type density function or the distribution function for a quick visualisation
- all plot methods accept list of objects in first argument to avoid do.call() trickery, but need to be called explicitly rather than via method dispatch in this case
Show all changes in 0.6-70Hide the rest of the changes in 0.6-70
- lnre() now allows a user-defined cost function in parameter estimation (e.g to fit against Zipf ranking = top part of TFL, or to set parameters based on implicit constraints)
- bug fix: tfl2spc() no longer includes types with f = 0 in frequency spectrum, and spc() now complains in such cases
- new default colour scheme and line styles
From NEWS in the release
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Stefan Evert <stefan.evert@fau.de>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Stefan",
family = "Evert",
role = c("aut", "cre"),
email = "stefan.evert@fau.de"),
person(given = "Marco",
family = "Baroni",
role = "aut",
email = "marco.baroni@unitn.it"))
as necessary.
Found the following URLs which should use \doi (with the DOI name only):
File ‘productivity_measures.Rd’:
http://dx.doi.org/10.18419/opus-2556
File ‘zipfR_package.Rd’:
http://dx.doi.org/10.18419/opus-2556- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 57includes a package overview page
- Examples that run
- 87%41 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran) · 2 never run · 3 hold no code
- Exported functions with examples
- 100%
- Documented parameters
- 87%
- Return-value docs
- 88%
- Help pages citing references
- 30%
- zipfR Tutorial PDF
Downloads
Dependencies
Installing zipfR adds no packages beyond those that come with R.
Show all 13 packagesHide all 13 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.6-70Latest2020-10-11 · current release · diff ↗ ·
added 5 exports
lnre.productivity.measures, plot.spc, plot.tfl, plot.vgc, plot.lnre - RR 4.0.0 released · 2020-04-24
- 0.6-662019-10-01 · diff ↗ ·
added 6 exports
postdlnre, postldlnre, postplnre, postqlnre, bootstrap.confint, productivity.measures - RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 0.6-102017-08-17 · diff ↗
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
Show 17 earlier eventsHide 17 earlier events
- RR 3.0.0 released · 2013-04-03
- 0.6-62012-04-03 · diff ↗ ·
removed 3 exports
zipfR.legend, plot.spc, plot.vgcadded 1 export
lnre.bootstrap - RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- RR 2.11.0 released · 2010-04-22
- RR 2.10.0 released · 2009-10-26
- RR 2.9.0 released · 2009-04-17
- 0.6-5
- RR 2.8.0 released · 2008-10-20
- RR 2.7.0 released · 2008-04-22
- RR 2.6.0 released · 2007-10-03
- RR 2.5.0 released · 2007-04-24
- RR 2.4.0 released · 2006-10-03
- 0.6-02006-08-23
- RR 2.3.0 released · 2006-04-24
Package metadata
- First published
- 2006-08-23
- Total releases
- 6 / 20 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.0.0
- Bundled data
- 1,002 KB / 34 files
- Download size
- 1.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("zipfR")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.