convertRawReports2TablesRcpp: Create 2 x 2 Tables

View source: R/RcppExports.R

convertRawReports2TablesRcppR Documentation

Create 2 x 2 Tables

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

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 Feb. 13, 2025, 3:32 a.m.