simulateReport: Simulate a single Report

Description Usage Arguments Value

View source: R/RcppExports.R

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

1
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 Dec. 10, 2020, 3:16 p.m.