Learn R Programming

adoptr (version 0.1.1)

ConditionalScore-class: Class for conditional scoring function

Description

ConditionalScore is an abstract class for conditional scores. It requires the two slots distribution and prior that determine the data distribution and the prior distribution for the effect parameter. When defining a specific ConditionalScore, a corresponding method evaluate needs to be defined, too. Any ConditionalScore can be transformed to an unconditional IntegralScore by means of the method expected.

Usage

# S4 method for ConditionalScore
show(object)

Arguments

object

object of class ConditionalScore

See Also

The common conditional scores ConditionalPower and ConditionalSampleSize are preimplemented in adoptr.

Examples

Run this code
# NOT RUN {
cp <- ConditionalPower(Normal(), PointMassPrior(0, 1))
ep <- expected(cp)
design <- TwoStageDesign(50, 0, 2, 50, 2, 5)
evaluate(ep, design)

# }

Run the code above in your browser using DataLab