Learn R Programming

simboot (version 0.2-8)

estSimpsonf: Estimator for Simpson's index odered by a factorial variable f.

Description

Estimation function for Simpson's index. Internal use in sbdiv for methods rpht, tsht, asht. Sums up species counts in each columns for every treatment group and estimates Simpson's index on the resulting vectors of summed up species counts.

Usage

estSimpsonf(X, f)

Value

estimate

Estimated Simpson index for treatment groups

varest

Estimated variance of Simpson's index for treatment groups

Arguments

X

\(n\) times \(p\) matrix containing species in \(p\) columns and replicates in \(n\)rows.

f

Factor variable comtaining treatment groups. Must be of length: replicates times treatment groups.