Power (pwr) Flashcards
alpha convention
.05
power convention
.8
power (definition)
probability of correctly rejecting a false null hypothesis - when we find an effect that exists
factors that affect power
effect size
sample size
significance level
effect of sample size on power
power increases as sample size increases
effect of effect size on power
power increases as parameter values move further into H1 (alt hyp) values and away from H0 (null hyp) values
power increases as effect size increases
effect of significance level on power
power increases as significance level increases
why should we not increase the significance level to increase power?
leads to more type 1 errors
effect size (definition)
‘detectability’ of alternative hypothesis - comapres distance between null and alt hypothesis to variability in data
pwr.t.test code
n = sample size
d = effect size
sig.level = significance level (alpha). default = .05
power = power level
type = type of t-test to perform, e.g. 2-sample (two.sample), 1-sample (one.sample) or dependent sample t-test (paired). default = 2sample
alternative = if alt hyp is two-sided (two.sided) or one-sided (less or greater). default = twosided
code for finding power for linear regression
pwr.f2.test
pwr.f2.test code
u = numerator degrees of freedom (predictors in model = k)
v = denominator degrees of freedom (n - k - 1)
f2 = effect size
u and v come from study deisgn -
code for finding power for correlations
pwr.r.test
pwr.r.test code
n = sample size
r = effect size
sig.level = significance level
power = power