Skip to content

Relative Activity Index (RAI) - Update/Fix required #34

@btitaro

Description

@btitaro

RAI equation

  • RAI is a standardized calculation of relative activity over a set period of time, typically 100 trap days.
  • It looks like the RAI being generated in the script is total count / trap days as opposed to (total count * 100) / trap days, with the 100 being the standardized trap days.
  • This is why we're getting rai values as a proportion of 1 instead of whole numbers (see below).
    thumbnail_image

total_rai_by_year function

The scale of the ggplot graph produced by this function doesn't make sense since rai is currently being calculated as a proportion of 1.
thumbnail_image

  • Examining the data via View(total_rai_by_year) it appears that the entire deployment is only being assigned 1 trap day so the rai value being calculated is actually just a count total by deployment per month.
  • That is why the J7_2023105 value for 2023 in the table below is so high (270), its the total count.
  • If we assume one trap day between January 1 2023 and October 5 2023 (277) then using the rai equation mentioned above ((total count * 100)/trap days) that rai value should read: (270*100)/277 = 97.5
    thumbnail_Outlook-p3vm1oi1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions