computeNEff: Help function to compute the effective sample size based on a...

View source: R/zTest.R

computeNEffR Documentation

Help function to compute the effective sample size based on a length 2 vector of samples

Description

Help function to compute the effective sample size based on a length 2 vector of samples

Usage

computeNEff(n, testType = c("oneSample", "paired", "twoSample"), silent = TRUE)

Arguments

n

vector of length at most 2 representing the sample sizes of the first and second group

testType

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

silent

logical, if true, then turn off warnings

Value

a numeric that represents the effective sample size.


safestats documentation built on Nov. 24, 2022, 5:07 p.m.