create2x2TablesDAGRcpp: Create 2 x 2 Tables

View source: R/RcppExports.R

create2x2TablesDAGRcppR Documentation

Create 2 x 2 Tables

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

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 Feb. 15, 2025, 2:35 p.m.