Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Data distributions

Source:R/DataDistribution.R
DataDistribution-class.Rd

DataDistribution is an abstract class used to represent the distributionof a sufficient statisticx given a sample sizen and asingle parameter valuetheta.

Arguments

x

outcome

n

sample size

theta

distribution parameter

...

further optional arguments

Details

This abstraction layer allows the representation of t-distributions(unknown variance), normal distribution (known variance), and normalapproximation of a binary endpoint.Currently, the two implemented versions areNormal-class andBinomial-class.

The logical optiontwo_armed allows to decide whether a one-arm ora two-arm (the default) design should be computed. In the case of a two-armdesign all sample sizes are per group.

Slots

two_armed

Logical that indicates if a two-arm design is assumed.

Examples

normaldist<-Normal(two_armed=FALSE)binomialdist<-Binomial(rate_control=.25, two_armed=TRUE)

[8]ページ先頭

©2009-2025 Movatter.jp