Skip to content

Negative S_PIE values when very small non integer abundances #258

Closed
@AlbanSagouis

Description

@AlbanSagouis

When the abundance matrix mostly has small non integer values (because of standardisation), S_PIE is negative:

> library(mobr) # recently installed from the dev branch 
> set.seed(42)
> calc_div(runif(100, 0, 1.3), 'S_PIE', scales = 'alpha')
[1] -711.2691

Printing a warning could help draw attention to these communities or the functioning of S_PIE?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions