simulateReport: Simulate a single Report

View source: R/RcppExports.R

simulateReportR Documentation

Simulate a single Report

Description

Returns a single report for a spontaneous reporting system. Note that this function does not check whether the report is 'valid', see validReport

Usage

simulateReport(n_drugs, n_events, n_parents, beta0, beta1, parent_id)

Arguments

n_drugs

The number of drugs

n_events

The number of events

n_parents

A vector with the number of parents for each of the nodes

beta0

A vector with the intercepts for the logistic regression models

beta1

A vector with the regression coefficients for each node

parent_id

A vector with the id of the parent

Value

A binary vector


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