cummulative_rate: cummulative_rate

View source: R/cummulative_rate.R

cummulative_rateR Documentation

cummulative_rate

Description

cummulative_rate

Usage

cummulative_rate(
  data,
  id = id,
  incidence = incidence,
  cummulativesum = cummulativesum,
  accuracy = 4
)

Arguments

data

A data.frame object with interaction information

id

Row id of incidence

incidence

The incidence of interaction in the data data.frame

cummulativesum

cummulative counted incidences

accuracy

of the derivate of the rate

Value

A data.frame with the rate of change from fractional cuumlative incidence and the first and second derivates of the rate

Examples

library(ecointeraction)
data <-  acummulate_incidence(mammalvirus, mammal_species, incidence)
cumrateData <- cummulative_rate(data, id, incidence, cummulativesum)

alrobles/PNASSubmit-Wildlife-susceptibility-to-infectious-diseases-at-global-scales documentation built on Aug. 2, 2022, 5:15 p.m.