MyNixOS website logo
Description

Bifurcating Autoregressive Models.

Estimation of bifurcating autoregressive models of any order, p, BAR(p) as well as several types of bias correction for the least squares estimators of the autoregressive parameters as described in Zhou and Basawa (2005) <doi:10.1016/j.spl.2005.04.024> and Elbayoumi and Mostafa (2020) <doi:10.1002/sta4.342>. Currently, the bias correction methods supported include bootstrap (single, double and fast-double) bias correction and linear-bias-function-based bias correction. Functions for generating and plotting bifurcating autoregressive data from any BAR(p) model are also included. This new version includes calculating several type of bias-corrected and -uncorrected confidence intervals for the least squares estimators of the autoregressive parameters as described in Elbayoumi and Mostafa (2023) <doi:10.6339/23-JDS1092>.

bifurcatingr

Bifurcating autoregressive (BAR) models are commonly used to model binary tree-structured data that appear in many applications, most famously cell-lineage applications. The BAR model is an extension of the autoregressive (AR) model where each line of descent considers an AR process with the modification that the observations on the two sibling cells who share the same parent are correlated. In practice, the BAR model is used to explain the progression of single-cell proliferation. The goal of the bifurcatingr package is to provide a collection of functions that can be used for analyzing bifurcating autoregressive data. The package implements the least squares estimation of bifurcating autoregressive models of any order, p, BAR(p), and allows for executing several types of bias correction on the least-squares estimators of the autoregressive parameters including different types of confidence intervals. Currently, the bias correction methods supported include bootstrap (single, double, and fast-double) bias correction and linear-bias-function -based bias correction. The library also contains functions for generating and plotting bifurcating autoregressive data from any BAR(p) model.

Installation

You can install the development version of bifurcatingr like so: You can install the released version of bifurcatingr from CRAN with:

 install.packages("bifurcatingr")

Example

This is a basic example which shows you how to use bifurcatingr to fit a bifurcating autoregressive model to the ecoli dataset which contains the lifetimes of lineage E. coli cells.

library(bifurcatingr)
#> Loading required package: fMultivar
## basic example code
data("ecoli")
## Fitting a BAR(p=1) model to the `ecoli` dataset:

    bfa_ls(ecoli$lifetime, p = 1, conf = TRUE, conf_level = 0.95, 
           p_value = TRUE, cov_matrix = TRUE)
#> $coef
#>      Intercept  X_[t/2]
#> [1,]  17.61658 0.355198
#> 
#> $p_value
#>       Intercept  X_[t/2]
#> [1,] 0.01079535 0.181183
#> 
#> $error_cor
#> [1] 0.5836975
#> 
#> $cov_matrix
#>            Intercept    X_[t/2]
#> Intercept 1480.39874 -56.147524
#> X_[t/2]    -56.14752   2.187566
#> 
#> $asymptotic_ci
#>                 2.5%      97.5%
#> Intercept  4.0722831 31.1608852
#> X_[t/2]   -0.1654543  0.8758503
#> 
#> $bootstarp_ci
#>                2.5%     97.5%
#> Intercept  4.993058 30.240110
#> X_[t/2]   -0.105760  0.816156
#> 
#> $percentile_ci
#>                 2.5%      97.5%
#> Intercept  6.8659866 29.4617318
#> X_[t/2]   -0.1032912  0.7103112
Metadata

Version

2.1.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows