MaximumSampleSize-class: Maximum Sample Size of a Design

MaximumSampleSize-classR Documentation

Maximum Sample Size of a Design

Description

This score evaluates max(n(d)) for a design d.

Usage

MaximumSampleSize(label = "max(n(x1))")

## S4 method for signature 'MaximumSampleSize,TwoStageDesign'
evaluate(s, design, optimization = FALSE, ...)

Arguments

label

object label (string)

s

Score object

design

object

optimization

logical, if TRUE uses a relaxation to real parameters of the underlying design; used for smooth optimization.

...

further optional arguments

See Also

Scores for general scores and ConditionalSampleSize for evaluating the sample size point-wise.

Examples

design <- TwoStageDesign(50, .0, 2.0, 50, 2.0, order = 5L)
mss    <- MaximumSampleSize()
evaluate(mss, design)


kkmann/adoptr documentation built on Feb. 3, 2024, 6:55 p.m.