Graphing results from the margins command can help in the interpretation of your model. Almost all of the needed results will be found in various matrices saved by margins. If…
Read More
Search Results for: stata
How can I use the margins command with a 3-way anova interaction? Stata FAQ
The margins command, new in Stata 11, can be a very useful tool in understanding and interpreting interactions. On this page we will use margins for a three factor anova…
Read More
How can I do anova contrasts using the margins command? Stata FAQ
The margins command introduced in Stata 11 provides an easy way to compute contrasts in analysis of variance designs. We will begin by loading the hsbanova dataset and running a…
Read More
How can I graph the results of the margins command? (Stata 12) | Stata FAQ
Graphing results from the margins command can help in the interpretation of your model. Stata 12 introduced the marginsplot command which make the graphing process very easy. These commands also…
Read More
How can I use the margins command to understand multiple interactions in regression and anova? | Stata FAQ
The margins command can be a very useful tool in understanding and interpreting interactions. We will illustrate the command in two examples using the hsbdemo dataset. use https://stats.idre.ucla.edu/stat/data/hsbdemo, clear Example…
Read More
More of how can I use the margins command to understand multiple interactions in regression? | Stata FAQ
The web page, How can I use the margins command to understand multiple interactions in regression and anova?, presented two examples of models with multiple interactions involving categorical variables. We…
Read More
How can get anova main-effects with dummy coding using margin? Stata FAQ
Many researchers like to do their anova using regression with dummy coding but find it confusing when they don’t get the same main-effects as in anova. This FAQ will show…
Read More
How can I get ANOVA type results from mixed using the margins command? | Stata FAQ
The anova and mixed commands present their results rather differently. The anova command displays a single test for each factor in the model including factors that have more than one…
Read More
How can I use the margins command to understand multiple interactions in logistic regression? Stata FAQ
The margins command, new in Stata 11, can be a very useful tool in understanding and interpreting interactions. We will illustrate the command for a logistic regression model with two…
Read More
Why doesn’t the margins command work with a nested factor in anova? Stata FAQ
A client sent in a question concerning a problem he had with the margins command. It involved a repeated measures anova that used a nested factor as an error term…
Read More
