The approach aims to plan a sample size based on how close the researcher wishes both sample means to be to their respective population parameter, and how confident the researcher wants to be in this.

ssp_app(confidence, closeness)

Arguments

confidence

Numeric. The desired probability of obtaining the sample mean with the desired closeness to the population mean.

closeness

Numeric. The desired closeness of the sample mean to the population mean defined in standard deviation.

Value

The function returns a list of one named element. The determined sample size for group one and two called `n1`.

Examples

if (FALSE) { SampleSizePlanner::ssp_app(closeness = 0.2, confidence = 0.95) }