Repository navigation
Add getVariogram - #134
Add getVariogram#1340xMuluh wants to merge 16 commits into
Conversation
Estimates D(L), the expected within-subject dissimilarity at a stated time lag, from all within-subject sample pairs with a local quadratic fit in log lag and subject-clustered intervals. Lags the sampling design does not support are reported as NA. split.by compares groups by the ratio of D(L); at.time estimates D(L) at a common time for developing communities.
|
Nice - could it be shorter, just And |
|
Reference is from 1988. Nothing wrong with that but I am wondering if there is (additionally) any more fresh reference related to applications in ecology or microbiomics? |
|
Thanks! Renamed to
Added Lloyd-Price et al. 2019 (within-subject dissimilarity against time lag in the IBD cohort) and Björk et al. 2022 (gut microbiome similarity against time lag in wild baboons) as microbiome applications. |
|
For time point variable at least check what argument name the other miaTime/miaSim functions use to harmonize (and avoid confusion if similar but different parameters in use). |
|
Renamed |
# Conflicts: # NAMESPACE # R/AllGenerics.R
The subjects' scores sum to zero, so with as many subjects as regression coefficients the sandwich variance is singular. D(L) is now reported only when the lag window holds at least 6 subjects, or 10 with time.point.
# Conflicts: # NEWS
Adds
getVariogram()andaddVariogram(), which estimate D(L), the expected within-subject dissimilarity at a stated time lag, from all within-subject sample pairs. Unlike stepwise divergence, D(L) does not depend on the sampling schedule. Lags the design does not support are returned as NA;split.bycompares groups by the ratio of D(L), andtime.pointestimates D(L) at a common time for developing communities.Also includes the options from #136, #146, #147, #148, #155 and #157.
Closes #140, closes #141, closes #142, closes #154, closes #156.