is.child.ct | R Documentation |
This function allows us to determine which ids are directly descended from which other ones. It is the only part of the code that relies on the ID format used by the Curitiba study (see Details); by modifying this function, it should be possible to adapt this code to another study.
is.child.ct(id, seed.id)
id |
the id of the potential child |
seed.id |
the id of the potential parent |
See:
Salganik, M. J., Fazito, D., Bertoni, N., Abdo, A. H., Mello, M. B., & Bastos, F. I. (2011). Assessing network scale-up estimates for groups most at risk of HIV/AIDS: evidence from a multiple-method study of heavy drug users in Curitiba, Brazil. American journal of epidemiology, 174(10), 1190-1196.
TRUE if id
is the direct descendant of seed.id
and FALSE otherwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.