Can’t find your question? Try checking our General FAQ page. Transferring data to/from Stata How can I convert files among SAS, SPSS and Stata? How can I read data from multiple…
Read More
Search Results for: stata
How does Stata compare with SAS and SPSS? | Stata FAQ
Here are two FAQ pages that translate common SAS and SPSS commands into Stata. How do I do this SAS Command in Stata? How do I do this SPSS Command…
Read More
Why doesn’t the test of the overall survey regression model in Stata match the results from SAS and SUDAAN? | Stata FAQ
The question Let’s say that you ran an OLS regression model with survey data in Stata. use http://www.stata-press.com/data/r12/nhanes2.dta, clear svyset psu [pw=finalwgt], strata(strata) pweight: finalwgt VCE: linearized Single unit:…
Read More
How do I use adjust in probit or logit? | Stata FAQ
Say you have a design that looks like a four group ANCOVA, but your dependent variable is a 0/1 variable. In such a case, running a normal ANCOVA is not…
Read More
How can I create all pairs within groups? | Stata FAQ
Consider the following dataset. clear input year str3 b bx 2001 abc 32 2001 nbc 14 2001 cbs 23 2001 nbc 14 2002 abc 11 2002 nbc 21 2002 wb…
Read More
Why don’t my anova and regression results agree? | Stata FAQ
We recently received a question asking why the results from the same model specified as anova versus a regression would not agree. The model in question had both categorical and continuous predictors. This…
Read More
How do I use the anovalator command? Stata FAQ
The anovalator command refers to a mythical program that displays the results of an estimation command in an anova-like manner, that is, separate multidegree of freedom tests for main effects,…
Read More
How can I do simple main effects using anovalator? Stata FAQ
This page will demonstrate the use of the anovalator command (search anovalator) to compute simple main effects for both a two-factor model and a three-factor model. We will be using…
Read More
How can I append (stack) a large number of files? | Stata FAQ
Large datasets sometimes come as a series of smaller datasets each containing information from a subset of cases. For example, one dataset for each U.S. State, or one dataset per…
Read More
How can I randomly assign observations to groups in Stata? | Stata FAQ
The trick here is to create a random variable, sort the dataset by that random variable, and then assign the observations to the groups. Let’s use the hsb2 dataset as…
Read More
