The examples below use Stata 8. If you are using Stata version 9, please see this page. This example is taken from Levy and Lemeshow’s Sampling of Populations. page 351…
Read More
Search Results for: stata
How can I check for collinearity in survey regression? | Stata FAQ
Collinearity is a property of predictor variables and in OLS regression can easily be checked using the estat vif command after regress or by the user-written command, collin (see How can…
Read More
How can I do a t-test with survey data? | Stata FAQ
There is no svy: ttest command in Stata; however, svy: mean is an estimation command and allows for the use of both the test and lincom post-estimation commands. It is…
Read More
How can you get 3-way, 4-way, 5-way or more cross tabulation in Stata? | Stata FAQ
The tabulate command is great for 2-way cross tabulations. But how do you do 3-way, 4-way, 5-way of more cross tabulations? The answer is to use the table command with…
Read More
How can I test for a trend across a categorical variable? | Stata FAQ
In a oneway analysis of variance (ANOVA), the alternative hypothesis is that the means across the levels of a factor variable are not equal. In the situation where the factor…
Read More
How can I compute tetrachoric correlations in Stata? | Stata FAQ
Stata has added a maximum likelihood tetrachoric command to Stata 9.2. The matrix of tetrachoric correlations is saved in r(Rho) for use pic pcamat or factormat. If you need polychoric…
Read More
How can I understand a three-way interaction in anova? (Stata 10 and earlier) | Stata FAQ
First off, let’s start with what a significant three-way interaction means. It means that there is a two-way interaction that varies across levels of a third variable. Say, for example,…
Read More
How can I understand a three-way interaction in anova? | Stata FAQ
First off, let’s start with what a significant three-way interaction means. It means that there is a two-way interaction that varies across levels of a third variable. Say, for example,…
Read More
How can I understand a three-way interaction in anova? (Stata 11) | Stata FAQ
First off, let’s start with what a significant three-way interaction means. It means that there is a two-way interaction that varies across levels of a third variable. Say, for example,…
Read More
How can I understand a three-way interaction in anova? (Stata 12) | Stata FAQ
Let’s begin with with what a significant three-way interaction means. It means that there is a two-way interaction that varies across levels of a third variable. Say, for example, that…
Read More
