generate.paired: Generate Dataset from "tab.paired"-Object

Description Usage Arguments Value See Also Examples

View source: R/DTComPair.R

Description

Generates a dataset from contingency tables of binary diagnostic test results in a paired study design.

Usage

1

Arguments

tab

An object of class tab.paired.

...

Additional arguments (usually not required).

Value

A dataframe containing:

d

A numeric vector specifying the gold-standard results (1 = presence of disease, 0 = absence of disease).

y1

A numeric vector specifying the results of diagnostic test 1 (1 = positive, 0 = negative).

y2

A numeric vector specifying the results of diagnostic test 2 (1 = positive, 0 = negative).

See Also

tab.paired and read.tab.paired.

Examples

1
2
3
4
5
6
data(Paired1) # Hypothetical study data
ftable(Paired1)
paired.layout <- tab.paired(d=d, y1=y1, y2=y2, data=Paired1)
new.df <- generate.paired(paired.layout)
head(new.df)
ftable(new.df)

DTComPair documentation built on May 19, 2017, 6:56 p.m.

Search within the DTComPair package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.