Pairwise comparisons with different TDF's

23 views
Skip to first unread message

Laura Agusto

unread,
Oct 25, 2019, 3:17:16 AM10/25/19
to tRophicPosition
Dear all,

Would anyone know how to perform pairwise comparisons of TP's calculated using 4 different TDF's? :) 



Thanks so much in advance,


Laura E. Agusto
PhD candidate


Mangrove Ecology and Evolution Lab,
Environmental Geochemistry and Oceanography Research Group, 
The Swire Institute of Marine Science,
The University of Hong Kong,
Cape D'Aguilar, Shek O, Hong Kong


Claudio Quezada Romegialli

unread,
Oct 26, 2019, 2:23:53 PM10/26/19
to Laura Agusto, tRophicPosition
Dear Laura

If you use multiSpeciesTP() or multiModelTP() to calculate trophic position, then the object you use to store the output has a "TPs" object which is a list. You just have to combine the output of your different TPs calculated with different TDFs and compare them as usual with a logical test (< or <=, > or >=) or the Bhattacharyya coefficient (bhat).

For example

object1 <- multiSpeciesTP()
object2 <- multiSpeciesTP()
combined_list <- do.call(c, list(object1$TPs, object2$TPs))

pairwiseComparisons(combined_list, "bhat")

If you have any questions, please let me know.

Best wishes,

Claudio


--
To download tRophicPosition package visit https://github.com/clquezada/tRophicPosition
---
You received this message because you are subscribed to the Google Groups "tRophicPosition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trophicposition-s...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/trophicposition-support/bed53493-a3ac-48d4-8efa-0831d0582d3e%40googlegroups.com.


--
Dr. Claudio Quezada-Romegialli
Profesor Asociado
Departamento de Biología
Facultad de Ciencias Naturales y Exactas
Universidad de Playa Ancha, Valparaíso, Chile
Móvil: +56 9 9038 0148
Teléfono: +56 32 250 0519
Reply all
Reply to author
Forward
0 new messages