I have a data described using variable or code as indicated below. I am torn between using ANOVA Test and Chi-Square Test. Can anyone suggest which is appropriate and the reason why I need to use either for my hypothesis testing at 5% significance level to see if clearance by 14 day is affected by the (i) antibiotic used, (ii) age group of the child or (iii) ear affected.?
Well, it's hard for me to say without a syllabus and an understanding of your class rules of engagement.
Anova isn't designed for categorical variables. It depends on variance of continuous variables.
Chi-squared can be used for categorical variables, if you have a sufficient number of observations to be in Central Limit Theorem territory. If you have fewer than about 30 observations, you're probably in Student's t land.