Description
Integral of the curve trajectory of subject_id in the interval a,b
Usage
integralFun(x, y, id, a, b)
Value
matrix with integrals for each individual (rows) and each taxa (columns)
Arguments
- x
abundance matrix or data frame in long format (several rows per individual)
- y
outcome (binary); data type: numeric, character or factor vector
- id
subjects-ids
- a
interval initial time
- b
interval final time
Author
M. Calle - T. Susin