Description Usage Arguments Value

This function is used to derive weights for feature-wise compositional estimates. Our (default) intention is to derive these based on average occurrences across the dataset, as just a function of sample depth, and not with particular relevance to groups.

1 2 | ```
.getHurdle(mat, hdesign = model.matrix(~-1 + log(colSums(mat))),
pres.abs.mod = TRUE, thresh = FALSE, thresh.val = 1e-08, ...)
``` |

`mat` |
count matrix |

`hdesign` |
design matrix for the logistic; the default is usually sufficient. |

`pres.abs.mod` |
TRUE if glm regression is for presence or absence. FALSE if glm regression is for counts. |

`thresh` |
TRUE if numerically one/zero probability occurrences must be thresholded |

`thresh.val` |
if thresh is true, the numerically one/zero probability occurrences is thresholded to this value |

`...` |
other parameters |

A list with components:

pi0.fit - list with feature-wise glm.fit objects

pi0 - matrix with fitted probabilities

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.