sample_size: sample_size

View source: R/power.R

sample_sizeR Documentation

sample_size

Description

This function calculates the probability of Type II error for two independent groups when the when the population standard deviation is assumed known (i.e., using the $z$-distribution)#' in order to achieve a preassigned Type II error probability (beta) of interest.

Usage

sample_size(mu0, mu1, sigma, alpha, beta)

Arguments

mu0

Mean value 0.

mu1

Mean value 1.

sigma

The standard deviation.

alpha

The Type I error rate.

beta

The desired Type II error rate, used when calculating the necessary sample size.

Value

Returns the Type II error for a given sample size.


yelleKneK/SMSD documentation built on Nov. 23, 2022, 6:40 p.m.