Learn R Programming

countprop: Calculate Model-Based Metrics of Proportionality on Count-Based Compositional Data

This package allows estimation of several types of proportionality metrics for count-based compositional data such as 16S, metagenomic, and single-cell sequencing data. The package includes functions that allow standard empirical estimates of these proportionality metrics, as well as estimates based on the multinomial logit-normal model.

countprop is available on CRAN. To install, run the following R code:

install.packages("countprop")

Alternatively, to install this package from github, run the following code:

if (!require(devtools)) {
  install.packages("devtools")
  library(devtools)
}
install_github("kevinmcgregor/countprop", dependencies=TRUE, build_vignettes=TRUE)

Once the package is loaded into R, you can view the vignette:

library(countprop)
vignette("countprop")

Copy Link

Version

Install

install.packages('countprop')

Monthly Downloads

113

Version

1.1.1

License

GPL (>= 3)

Maintainer

Kevin McGregor

Last Published

December 11th, 2025

Functions in countprop (1.1.1)

pluginVariation

Plugin Variation (Deprecated)
mleLR

Maximum Likelihood Estimate for multinomial logit-normal model
convertSigma

Convert between CLR and ALR covariance matrices
naiveVariation

Naive (Empirical) Variation
logLik

Log-Likelihood
ebic

Extended Bayesian Information Criterion
mlePath

Maximum Likelihood Estimator Paths
ebicPlot

Extended Bayesian Information Criterion Plot
logVarTaylorFull

Full logp Variance-Covariance
logitNormalVariation

Logit Normal Variation
singlecell

Single cell sequencing data from mouse embryonic stem cells in G1 phase