Book Image

Data Analysis with STATA

Book Image

Data Analysis with STATA

Overview of this book

Table of Contents (16 chapters)
Data Analysis with Stata
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

ANOVA


Analysis of variance (ANOVA), also known as the one-way analysis of variance, is generally leveraged if your data includes a categorical variable that is an independent variable (with more than one category). The variable in question should be a normally distributed variable and an interval-dependent variable. ANOVA checks for the various means at the different levels defined by the independent variable. Here is how you can run ANOVA in Stata:

anova fridge_sales model

Here are the results of this query:

Now, let's work on the model and summarized results of the fridge sales with respect to the model types.

The average or mean of the dependent variable is significantly different from each other. However, now the problem is that we don't have an exact idea about the quantitative difference between the model types. Here is the command to check the differences between the model types:

tabulate model, summarize(fridge_sale)

Here are the results of this query:

One-way repeated ANOVA measures...