get_n_from_depth: Get sample size from depth

View source: R/wodds.R

get_n_from_depthR Documentation

Get sample size from depth

Description

Calculates the sample size needed given an alpha level and depth

Usage

get_n_from_depth(d, alpha = 0.05, conservative = TRUE)

Arguments

d

an integer depth

alpha

alpha level such as 0.1, 0.05, 0.01. An alpha of 0.05 would be associated with a 95 percent confidence interval

conservative

a bool. default is FALSE. If TRUE then a conservative (larger) sample size is returned.

Value

a float sample size

Examples

get_n_from_depth(7L, 0.01)

alexhallam/wodds documentation built on June 2, 2022, 10:28 a.m.