Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

n_fix.Student

Fixed Sample Size


Description

Returns the sample size of a fixed design without sample size recalculation.

Usage

## S4 method for signature 'Student'
n_fix(design, nuisance, ...)

Arguments

design

test statistic object

nuisance

nuisance parameter

...

Further optional arguments.

Details

The method is only vectorized in either nuisance or n1.

Value

One value of the fixed sample size for every nuisance parameter and every value of n1.

Examples

d <- setupStudent(alpha = .025, beta = .2, r = 1, delta = 3.5, delta_NI = 0,
                  alternative = "greater", n_max = 156)
n_fix(design = d, nuisance = 5.5)

blindrecalc

Blinded Sample Size Recalculation

v0.1.2
MIT + file LICENSE
Authors
Lukas Baumann [aut], Maximilian Pilz [aut, cre], Institute of Medical Biometry and Informatics - University of Heidelberg [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.