An alternative test to the classic t-test is the Kolmogorov-Smirnov test for equality of distribution functions. In a simple example, we’ll see if the distribution of writing test scores across…
Read More
Search Results for: stata
What is the difference between = and == in Stata? | Stata FAQ
Single equal: Set equal The single equal, =, is used as a set equal operator. Old time Pascal programmers will recognize it as, :=. It is used in the generate,…
Read More
How can I use -estout- to make regression tables that look like those in journal articles? | Stata FAQ
This FAQ illustrates the estout command that makes regression tables in a format that is commonly used in journal articles. The estout command was written by Ben Jann of ETH…
Read More
How can I do factor analysis with missing data in Stata? | Stata FAQ
Trying to run factor analysis with missing data can be problematic. One issue is that traditional multiple imputation methods, such as mi estimate, don’t work with Stata’s factor command. Truxillo (2005)…
Read More
Monte Carlo simulation for factorial ANOVA | Stata FAQ
Monte Carlo simulation can provide a useful method of assessing the power of a factorial anova design. There are many different ways that one could generate The approach that we…
Read More
How can I do power and robustness analyses for factorial anova? | Stata FAQ
One way to assess the power of a factorial anova design is through the use of Monte-Carlo simulation. With this approach, one generate hundreds (or thousands) of randomly generated datasets….
Read More
How can I anonymize patient IDs and still be able to decode them, if necessary? | Stata FAQ
Many medical researchers want to be able to put their research data onto laptops or usb drives. However, for reasons of patient privacy, they shouldn’t carry around files that contain…
Read More
How do I use file read to read in information in an external text file? | Stata FAQ
The file read command can be used to read information from an external text file. Note that if you are trying to read in a dataset in ascii format, another…
Read More
How do I use file write to write results or other information to an external text file? | Stata FAQ
The file write command can be used to write results or other information generated by Stata to a text file which can be read using a variety of programs found…
Read More
How can I “fill down”/expand observations with respect to a time variable? | Stata FAQ
A time series data set may have gaps and sometimes we may want to fill in the gaps so the time variable will be in consecutive order. This involves two…
Read More
