Description Usage Arguments Details Value Methods (by class) References Examples
Test on device-events using the proportional reporting ratio (PRR). From the family of disproportionality analyses (DPA) used to generate signals of disproportionate reporting (SDRs).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
df |
Required input data frame of class
|
... |
Further arguments passed onto |
ts_event |
Required if Default: |
analysis_of |
Optional string indicating the English description of what
was analyzed. If specified, this will override the name of the
Default: Example: |
eval_period |
Required positive integer indicating the number of unique times counting in reverse chronological order to sum over to create the 2x2 contingency table. Default: Example: |
null_ratio |
Numeric PRR value representing the null hypothesis, used
with Default: |
alpha |
Numeric value representing the statistical alpha used to establish the signal status. Default: |
cont_adj |
Numeric value 0 or greater representing the continuity adjustment to be added to each cell of the 2x2 contingency table. A value greater than 0 allows for contingency tables with 0 cells to run the algorithm. A typical non-zero value is 0.5. Default: |
For parameter ts_event
, in the uncommon case where the
device-event count (Cell A) variable is not "nA"
, the name of the
variable may be specified here. Note that the remaining 3 cells of the 2x2
contingency table (Cells B, C, D) must be the variables "nB"
,
"nC"
, and "nD"
respectively in df
. A named character
vector may be used where the name is the English description of what was
analyzed. Note that if the parameter analysis_of
is specified, it will
override this name. Example: ts_event=c("Count of Bone Cement
Leakages"="event_count")
A named list of class mdsstat_test
object, as follows:
Name of the test run
English description of what was analyzed
Named boolean of whether the test was run. The name contains the run status.
A standardized list of test run results: statistic
for the test statistic, lcl
and ucl
for the set
confidence bounds, p
for the p-value, signal
status, and
signal_threshold
.
The test parameters
The data on which the test was run
mds_ts
: PRR on mds_ts data
default
: PRR on general data
Evans, S. J. W., Waller, P. C., & Davis, S. (2001). Use of proportional reporting ratios (PRRs) for signal generation from spontaneous adverse drug reaction reports. Pharmacoepidemiology and Drug Safety, 10(6), 483-486. https://doi.org/10.1002/pds.677 Böhm R, Klein H.-J. (v2018-10-16). Primer on Disportionality Analysis. OpenVigil http://openvigil.sourcefourge.net/doc/DPA.pdf
1 2 3 4 5 6 7 8 9 | # Basic Example
data <- data.frame(time=c(1:25),
nA=as.integer(stats::rnorm(25, 25, 5)),
nB=as.integer(stats::rnorm(25, 50, 5)),
nC=as.integer(stats::rnorm(25, 100, 25)),
nD=as.integer(stats::rnorm(25, 200, 25)))
a1 <- prr(data)
# Example using an mds_ts object
a2 <- prr(mds_ts[[3]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.