validReport: Valid Report

View source: R/RcppExports.R

validReportR Documentation

Valid Report

Description

Checks whether the given report is 'valid'. A report should contain at least one drug and at least one event (otherwise it would never been sent to the spontaneous reporitng sytem anyway).

Usage

validReport(report, n_drugs, n_events)

Arguments

report

A logical matrix with one row and n_drugs + n_events columns

n_drugs

The total number of drugs

n_events

The total number of events

Value

TRUE when the report is valid, FALSE otherwise


bips-hb/srsim documentation built on Feb. 15, 2025, 2:35 p.m.