Description Usage Arguments Value See Also
Creates a data frame containing all 2 x 2 contingency tables
from the results generated by simulateSRS
.
See the R wrapper function convert2Tables
for more information.
1 2 | create2x2TablesDAGRcpp(reports, prob_drugs, prob_events, n_parents, parent_id,
beta1)
|
reports |
A binary matrix. Each row is a report |
prob_drugs |
A vector with the marginal probabilities of the drugs |
prob_events |
A vector with the marginal probabilities of the events |
n_parents |
A vector with the number of parents for each of the nodes |
parent_id |
A vector with the id of the parent |
beta1 |
A vector with the regression coefficients for each node |
A dataframe. A description of the columns can be found in the commentary
for the function convert2Tables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.