Other packages > Find by keyword >

treebalance  

Computation of Tree (Im)Balance Indices
View on CRAN: Click here


Download and install treebalance package within the R console
Install from CRAN:
install.packages("treebalance")

Install from Github:
library("remotes")
install_github("cran/treebalance")

Install by package version:
library("remotes")
install_version("treebalance", "1.2.0")



Attach the package and use:
library("treebalance")
Maintained by
Luise Kuehn
[Scholar Profile | Author Map]
First Published: 2021-09-22
Latest Update: 2023-12-14
Description:
The aim of the 'R' package 'treebalance' is to provide functions for the computation of a large variety of (im)balance indices for rooted trees. The package accompanies the book ”Tree balance indices: a comprehensive survey” by M. Fischer, L. Herbst, S. Kersting, L. Kuehn and K. Wicke (2023) <ISBN: 978-3-031-39799-8>, <doi:10.1007/978-3-031-39800-1>, which gives a precise definition for the terms 'balance index' and 'imbalance index' (Chapter 4) and provides an overview of the terminology in this manual (Chapter 2). For further information on (im)balance indices, see also Fischer et al. (2021) <https://treebalance.wordpress.com>. Considering both established and new (im)balance indices, 'treebalance' provides (among others) functions for calculating the following 18 established indices and index families: the average leaf depth, the B1 and B2 index, the Colijn-Plazzotta rank, the normal, corrected, quadratic and equal weights Colless index, the family of Colless-like indices, the family of I-based indices, the Rogers J index, the Furnas rank, the rooted quartet index, the s-shape statistic, the Sackin index, the symmetry nodes index, the total cophenetic index and the variance of leaf depths. Additionally, we include 9 tree shape statistics that satisfy the definition of an (im)balance index but have not been thoroughly analyzed in terms of tree balance in the literature yet. These are: the total internal path length, the total path length, the average vertex depth, the maximum width, the modified maximum difference in widths, the maximum depth, the maximum width over maximum depth, the stairs1 and the stairs2 index. As input, most functions of 'treebalance' require a rooted (phylogenetic) tree in 'phylo' format (as introduced in 'ape' 1.9 in November 2006). 'phylo' is used to store (phylogenetic) trees with no vertices of out-degree one. For further information on the format we kindly refer the reader to E. Paradis (2012) <http://ape-package.ird.fr/misc/FormatTreeR_24Oct2012.pdf>.
How to cite:
Luise Kuehn (2021). treebalance: Computation of Tree (Im)Balance Indices. R package version 1.2.0, https://cran.r-project.org/web/packages/treebalance. Accessed 05 May. 2025.
Previous versions and publish date:
1.0.0 (2021-09-22 21:20), 1.1.0 (2021-10-17 17:10)
Other packages that cited treebalance R package
View treebalance citation profile
Other R packages that treebalance depends, imports, suggests or enhances
Complete documentation for treebalance
Downloads during the last 30 days
04/0504/0604/0704/0804/0904/1004/1104/1204/1304/1404/1504/1604/1704/1804/1904/2004/2104/2204/2304/2404/2504/2604/2704/2804/2904/3005/0105/0205/0305/04Downloads for treebalance024681012141618202224TrendBars

Today's Hot Picks in Authors and Packages

ClickHouseHTTP  
A Simple HTTP Database Interface to 'ClickHouse'
'ClickHouse' () is an open-source, high performance columnar OLAP (online ...
Download / Learn more Package Citations See dependency  
affinitymatrix  
Estimation of Affinity Matrix
Tools to study sorting patterns in matching markets and to estimate the affinity matrix of both the ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
aspline  
Spline Regression with Adaptive Knot Selection
Perform one-dimensional spline regression with automatic knot selection. This package uses a penali ...
Download / Learn more Package Citations See dependency  
frailtypack  
Shared, Joint (Generalized) Frailty Models; Surrogate Endpoints
The following several classes of frailty models using a penalized likelihood estimation on the hazar ...
Download / Learn more Package Citations See dependency  
helloJavaWorld  
Hello Java World
A dummy package to demonstrate how to interface to a jar file that resides inside an R package. ...
Download / Learn more Package Citations See dependency  

24,205

R Packages

207,311

Dependencies

65,312

Author Associations

24,206

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA