create2x2TablesDAGRcpp: Create 2 x 2 Tables

Description Usage Arguments Value See Also

View source: R/RcppExports.R

Description

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.

Usage

1
2
create2x2TablesDAGRcpp(reports, prob_drugs, prob_events, n_parents, parent_id,
  beta1)

Arguments

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

Value

A dataframe. A description of the columns can be found in the commentary for the function convert2Tables

See Also

convert2Tables


bips-hb/srsim documentation built on Dec. 10, 2020, 3:16 p.m.