I have an assignment to test out some hypothesis... To simplyfy this, lets say there are 433 out of 1044 and I have to check whether the rate increases or not / differs from 23%.
null: rate <= 0.23
alternative: rate > 0.23
I did choose a t.test:
data = c(0.23, 0.23, 0.23, 433/1044)
t.test(data, mu = 0.23, alternative = "greater", level=0.95)
I get a p-Value of like 0.19. -> This indicates I have to accept H0. (5% confidence.level) The T Value is 1.
This is a contradiction to this:
t value >= qt(p=0.95, df = length(data)-1, lower.tail = F)
<--- This however indicates I have to decline H0...
What is the true answer now in this case?
Am I missing something out right here?