Note that Stata’s mi commands were implemented in version 11, the code below is not applicable to earlier versions. One common storage method for multiply imputed (MI) datasets is to…
Read More
Search Results for: stata
What happens if you omit the main effect in a regression model with an interaction? | Stata FAQ
Here is a traditional regression model with an interaction: regress y x1 x2 x1#x2 We see two main effects (x1 & x2) in addition to the interaction term (x1#x2). Is…
Read More
How can I test for nonadditivity in a randomized block ANOVA in Stata? | Stata FAQ
Stata FAQ: How can I test for nonadditivity in a randomized block ANOVA in Stata? Randomized block ANOVA models assume additive block and treatment effects, that is, that there is…
Read More
How can I see the number of missing values and patterns of missing values in my data file? | Stata FAQ
Sometimes, a data set may have “holes” in it, that is, missing values. Some statistical procedures such as regression analysis will not work as well, or at all, on a…
Read More
How can I load, write, or view a dBASE file, Excel file or Access file using odbc? | Stata FAQ
Note: This page is written using Stata 11 and Windows XP. Stata command odbc allows Stata to load, write, or view data from ODBC sources. ODBC, an acronym for Open…
Read More
How can I understand a categorical by continuous interaction in ologit? | Stata FAQ
Interpreting interactions in ologit is similar interpreting interactions in logit with the complication of multiple equations. We will demonstrate a categorical by continuous interaction using the hsbdemo dataset. We will…
Read More
How can I get margins and marginsplot with multiply imputed data? | Stata FAQ
The margins and marginsplot commands, introduced in Stata 11 and Stata 12, respectively, are very popular post-estimation commands. However, they can be tricky to use in conjunction with multiple imputation….
Read More
How can I compute Omega Squared in Stata after an ANOVA? | Stata FAQ
After you perform an ANOVA, it is useful to be able to report Omega Squared as a measure of the strength of the effect of the independent variable. Stata does…
Read More
How do I interpret odds ratios in logistic regression? | Stata FAQ
You may also want to check out, FAQ: How do I use odds ratio to interpret logistic regression?, on our General FAQ page. Introduction Let’s begin with probability. Probabilities range…
Read More
How can I output a formatted ASCII file? | Stata FAQ
Say that you want to output the data from Stata to a formatted ASCII file, that is, a file where variables are in specific columns and may be on different…
Read More
