ttest_power: Power Analysis for Two Sided T-Test

View source: R/Method-internal-power.r

ttest_powerR Documentation

Power Analysis for Two Sided T-Test

Description

This is a function that performs a power analysis of the two-sided t-test. Given the effect size, significance level, and power, the required sample size can be calculated (although the control or treatment sample size must be given). Also, given the sample size of the two groups, effect size, and significance level, the power can be calculated. Given the sample size of two groups, significance level, and power of the two groups, the effect size can be calculated. Given the sample size of two groups, effect size, and power of the two groups, the significance level can be calculated.

Usage

ttest_power(n0, n1, d, alpha, power)

Arguments

n0

numeric. Number of observations in the control.

n1

numeric. Number of observations in the treatment.

d

numeric. Effect size.

alpha

numeric. Statistically significance (probability of Type I error).

power

numeric. Power (1 - probability of Type II error).


KatoPachi/RCTtoolbox documentation built on April 20, 2022, 8:17 a.m.