Before an increase in excise duty on tea, 800 people out of a sample of 1000 were
consumers of tea. After the increase in duty, 800 people were consumers of tea in a
sample of 1200 persons. Write down the R programming code to test whether the
significant decrease in the consumption of tea after the increase in duty at 1 % level of
significance.
R codes on consumers of tea
Let the tea consumers with x=800,n=1000 be group A
and tea consumers with x=800,n=1200 be group B.
prop.test(x=c(800,800),n(1000,1200), alternative="greater",conf.level=0.01)
Comments
Leave a comment