loadData: Load Data

Description Usage Arguments Value

View source: R/loadData.R

Description

Returns the data from a number of repetitions.

Usage

1
2
3
loadData(n_reports, n_drugs, n_events, alpha_drugs, beta_drugs, alpha_events,
  beta_events, n_correlated_drugs, rho_drugs, n_correlated_events, rho_events,
  n_correlated_pairs, rho, repetitions = c(1), type = "raw")

Arguments

n_reports

Number of reports

n_drugs

Number of drugs

n_events

Number of adverse drug events

alpha_drugs

Alpha parameter for the drug marginal probabilities

beta_drugs

Beta parameter for the drug marginal probabilities

alpha_events

Alpha parameter for the event marginal probabilities

beta_events

Beta parameter for the event marginal probabilities

n_correlated_pairs

Number of drug-event pairs that will exhibit a nonzero correlation

repetitions

An array of repetitions one want to get

type

Type of data. Takes the values "raw" for the raw data, "results" for the table with the output of the methods in the function applyBatteryOfMethods and "auc" for the AUC filenames.

Value

data in a data frame. The column repetition represents the repetition


bips-hb/pvmcomparison documentation built on Dec. 13, 2020, 3:46 a.m.