checkAndReturnNPlan: Check consistency between nPlan and the testType for one and...

View source: R/helpers.R

checkAndReturnNPlanR Documentation

Check consistency between nPlan and the testType for one and two-sample z and t-tests

Description

Check consistency between nPlan and the testType for one and two-sample z and t-tests

Usage

checkAndReturnNPlan(
  nPlan,
  ratio = 1,
  testType = c("oneSample", "paired", "twoSample")
)

Arguments

nPlan

optional numeric vector of length at most 2, see scenario 2 and 3 above.

ratio

numeric > 0 representing the randomisation ratio of condition 2 over condition 1. If testType is not equal to "twoSample", or if nPlan is of length(1) then ratio=1.

testType

either one of "oneSample", "paired", "twoSample".

Value

nPlan a vector of sample sizes of length 1 or 2


safestats documentation built on Sept. 6, 2026, 1:06 a.m.