Description Usage Arguments Value Note Author(s) See Also Examples

Generates a matrix of conditional probabilities for a set of co-occurrences.

1 | ```
cond_net(x)
``` |

`x` |
A matrix of species co-occurrences with species in columns and observations in rows. |

Returns a matrix of conditional probabilities for a set of species.

This is primarily a low-level function used by coNet, it may be of interest to more advanced users who would like to directly compute the conditional probabilities from a set of co-occurrences.

Matthew K. Lau

`coNet`

, `cond_prob`

to See Also as `help`

, ~~~

1 2 3 4 5 6 | ```
A <- c(1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1)
B <- c(1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1)
C <- c(1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1)
D <- c(0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0)
M <- data.frame(A, B, C, D)
cond_net(M)
``` |

ECGen/coNet documentation built on Sept. 14, 2019, 5:24 a.m.

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.