var_fun_unif_lbm: Compute the Conditional variance of the LBM Robustness term...

View source: R/variance.R

var_fun_unif_lbmR Documentation

Compute the Conditional variance of the LBM Robustness term by term

Description

Compute the Conditional variance of the LBM Robustness term by term

Usage

var_fun_unif_lbm(con, pi, rho, nr, nc)

Arguments

con

A matrix, the connectivity parameter

pi

A vector of length nrow(con), the proportion of row blocks

rho

A vector of length ncol(con), the proportion of column blocks

nr

An integer, the number of row (primary) species

nc

An integer, the number of column (secondary) species

Value

A vector, the variance after m extinctions

Examples

con <- matrix(c(.5,.3,.3,.1), 2, 2)
pi  <- c(.25,.75)
rho <- c(1/3, 2/3)
nr <- 50
nc <- 30
var_fun_unif_lbm(con, pi, rho, nr, nc)

Chabert-Liddell/robber documentation built on Feb. 11, 2024, 5:21 a.m.