compareBenchDesigns: Compare BenchDesign objects

Description Usage Arguments Value Author(s) See Also Examples

Description

Comparison of BenchDesign objects and BenchDesign method information stored in SummarizedBenchmark objects. Inputs can be either BenchDesign or SummarizedBenchmark objects. If SummarizedBenchmark objects are specified, the method metadata stored in the colData will be used for the comparison. If only a single SummarizedBenchmark object is specified, the colData information will be compared with the BenchDesign object in the BenchDesign slot of the object. To compare the BenchDesign slots of SummarizedBenchmark objects, the BenchDesigns should be extracted with BenchDesign(sb) and passed as inputs (see Examples).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
compareBenchDesigns(x, y = NULL, ...)

## S4 method for signature 'SummarizedBenchmark,missing'
compareBenchDesigns(x, y = NULL,
  ...)

## S4 method for signature 'SummarizedBenchmark,SummarizedBenchmark'
compareBenchDesigns(x,
  y = NULL, ...)

## S4 method for signature 'SummarizedBenchmark,BenchDesign'
compareBenchDesigns(x,
  y = NULL, ...)

## S4 method for signature 'BenchDesign,SummarizedBenchmark'
compareBenchDesigns(x,
  y = NULL, ...)

## S4 method for signature 'BenchDesign,BenchDesign'
compareBenchDesigns(x, y = NULL, ...)

Arguments

x

a SummarizedBenchmark or BenchDesign object

y

an optional second SummarizedBenchmark or BenchDesign object (default = NULL)

...

other parameters

Value

list of comparison results

Author(s)

Patrick Kimes

See Also

compareBDMethod, compareBDData

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
bd1 <- 
    BenchDesign(norm_sd = BDMethod(stats::rnorm,
                                   params = rlang::quos(n = n),
                                   post = sd),
                t_sd = BDMethod(stats::rt,
                                params = rlang::quos(n = n, df = 1),
                                post = sd))
bd2 <- addMethod(bd1, "chi_sd",
                 func = stats::rchisq,
                 params = rlang::quos(n = n, df = 1),
                 post = sd)

compareBenchDesigns(bd1, bd2)

SummarizedBenchmark documentation built on Nov. 8, 2020, 8:30 p.m.