One method for determining correct denominators in analysis of variance is the Cornfield-Tukey method. To learn how to manually compute Cornfield-Tukey see our FAQ page. This page will demonstrate the…
Read More
Search Results for: what stat should i use
How can I quickly convert many string variables to numeric variables? | Stata FAQ
There may be times that you receive a file that has many (or all) of the variables defined as strings, that is, character variables. The variables may contain numeric values,…
Read More
How can I create dyad IDs? | Stata FAQ
Data management with dyadic data can be difficult. Before analyzing dyadic data, one may wish to know how many unique dyads appear in a dataset and create an ID variable…
Read More
How can I identify cases used by an estimation command using e(sample)? | Stata FAQ
When performing data analysis, it is very common for a given model (e.g. a regression model), to not use all cases in the dataset. This can occur for a number…
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
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
Econometric Analysis, Fourth Edition by William Greene Selected Portions of Chapter 14: Models for Panel Data | Stata Textbook Examples
use https://stats.idre.ucla.edu/stat/stata/examples/greene/table14_1, clear generate logc = log(c) generate logq = log(q) generate logf = log(pf) save table14-1 Table 14.1, page 566, No effects. regress logc logq logf lf Source |…
Read More
Econometric Analysis by William Greene Selected Portions of Chapter 15 Systems of Regression Equations | Stata Textbook Examples
use TBL15-1, clear Table 15.1, page 598, Least squares, OLS Standard errors. regress i f c Source | SS df MS Number of obs = 100 ————-+—————————— F( 2, 97)…
Read More
