Learn R Programming

adoptr (version 0.1.1)

ConditionalSampleSize-class: Conditional sample size of a design given stage-one outcome

Description

This score simply evaluates n(d, x1) for a design d and the first-stage outcome x1. The data distribution and prior are only relevant when it is integrated.

Usage

ConditionalSampleSize(dist, prior)

Arguments

dist

a univariate distribution object

prior

a Prior object

See Also

The method evaluate provides evaluation of the ConditionalSampleSize.

Examples

Run this code
# NOT RUN {
css <- ConditionalSampleSize(dist = Normal(), prior = PointMassPrior(.4, 1))

# }

Run the code above in your browser using DataLab