ABSTRACT

This chapter discusses a significance test for the distribution of the values in a table. The test statistic will be based on how well the actual counts for each category fit the expected counts. The chapter describes goodness-of-fit tests for continuous data. The samhda data set contains information about health behavior for school-age children. For example, the variable amt.smoke measures how often a child smoked in the previous month. The samhda data set contains survey data on 590 children. The variables gender and amt.smoke contain information about the gender of the participant and how often the participant smoked in the last month. When finding confidence intervals for a sample we were concerned about whether or not the data was sampled from a normal distribution. The chi-squared test is used for categorical data.