convertRawReports2TablesRcpp: Create 2 x 2 Tables

Description Usage Arguments Details Value See Also

View source: R/RcppExports.R

Description

Creates a data frame containing all 2 x 2 contingency tables given a raw spontaneous reporting (SR) data set. An SR data set is a binary matrix, where each row is a report. The first columns represent the presence or absence of a drug, the The other columns represent the presence or absence of an event. See for more information the wrapper function, convertRawReports2Tables.

Usage

1
convertRawReports2TablesRcpp(reports, n_drugs, n_events)

Arguments

reports

A binary matrix. Each row is a report

n_drugs

The number of drugs

n_events

The number of events

Details

The code is a simplified version of the function create2x2TablesRcpp in the SRSim package.

Value

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

See Also

convertRawReports2Tables


bips-hb/pvm documentation built on Dec. 14, 2020, 9:31 a.m.