Learn R Programming

wodds (version 0.1.0)

get_n_from_depth: 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

Run this code
# NOT RUN {
get_n_from_depth(7L, 0.01)
# }

Run the code above in your browser using DataLab