Description Usage Arguments Value Examples
View source: R/pwr_paired_t_test.R
pwr_paired_t_test computes the power and the sample size for testing
difference of means of two associates and normal populations .
1 2 3 4 5 6 7 8 9  | pwr_paired_t_test(
  sigma_d,
  delta,
  delta0 = 0,
  n = NULL,
  pwr = NULL,
  alternative = "two.sided",
  sig_level = 0.05
)
 | 
sigma_d | 
 standard deviation of difference of each pair  | 
delta | 
 difference of means  | 
delta0 | 
 difference of means under null hypothesis  | 
n | 
 number of pairs  | 
pwr | 
 power of test 1 + β (1 minus type II error probability)  | 
alternative | 
 a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less"  | 
sig_level | 
 significance level (Type I error probability)  | 
pwr_paired_t_test returns a list with the following
components:
standard deviation of difference of each pair
difference of means
dfference of means under null hypothesis
significance level
A tibble with sample size and n
is the number of pairs
1 2 3 4 5 6 7  | # Power
pwr_paired_t_test(sigma_d = 5, delta = 5, delta0 = 0,
n1 = 10, n2 = 10, pwr = NULL, alternative = "two.sided", sig_level = 0.05)
# Sample size
pwr_paired_t_test(sigma_d = 5, delta = 5, delta0 = 0,
n1 = NULL, n2 = NULL, pwr = 0.99, alternative = "two.sided",
sig_level = 0.05)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.