the universal writing platform
A paired t test in Stata compares two columns that represent matched subjects who are measured on a continuous variable. In this blog entry, we’ll show you how to run a paired t test in Stata and...
ETA squared is a measure of effect size that Stata can easily estimate after regression or ANOVA procedures. In this blog, we’ll show you how to use Stata to calculate ETA squared for...
Spearman correlation is an alternative to Pearson correlation that can be used when the relationship between variables is monotonic—for example, in the context of two variables, when the variables...
The distributions of continuous variables can be depicted in numerous ways, including through the use of histograms and box plots. The advantage of a violin plot is...
One of the standard post-regression diagnostic tests is a test for multicollinearity. In this blog, we’ll show you to test for multicollinearity after a regression using Stata’s vif command.
A dummy variable designates subgroups within your analysis. In Stata, one simple way to create dummy variables is to use the i.prefix, as we have shown you. However, you will not be able to use...
Knowing how to generate random numbers can be useful. For example, if you have ordered data that you need to shuffle, random numbers can help you. In this blog entry, we’ll show you to generate random numbers in Stata.
For a normally distributed variable, a z score assigns a number to each data point based on its distance, in standard deviations, from the mean. For example, if the mean of variable iq is...
Making sure that your data are appropriately sorted can be a precondition of data analysis. In this blog entry, we’ll show you how to sort your data in Stata.
Making sure that your data are appropriately ordered within a dataset can simplify analysis. In this blog entry, we’ll show you how to order your variables in Stata.
Filtering out unnecessary data values can simplify data analysis. In this blog entry, we’ll show you how to use Stata’s keep command to retain only the variables of interest to you in a given dataset.
Dropping unwanted variables can simplify data analysis. In this blog entry, we’ll show you how to use Stata’s drop command to eliminate unwanted variables from a given dataset.
Dropping unwanted rows can simplify data analysis. In this blog entry, we’ll show you how to use Stata’s drop command to eliminate unwanted rows from a given dataset.
A one-sample t test is applied when you are measuring values of a single variable that you are comparing to some test mean. In this blog entry, we’ll show you how to conduct a one-sample t-test in Stata.
A one-sample Wilcoxon signed rank test is applied when you are measuring values of a single variable that you are comparing to some test mean and when this variable is not normally distributed. In this blog entry, we’ll show you how to...
Cloning variables can be very useful for data analysis. In this blog entry, we’ll show you to clone variables in Stata, both generally and conditionally.
Sometimes, you might want graphics such as histograms to contain x lines. In this blog entry, we’ll show you how to add x lines to graphics using simple code in Stata.
Stata offers a simple means of exporting data into a number of other useful formats. In this blog entry, you’ll learn how to use Stata’s export function.
Stata can hold vast amounts of data. Sometimes, instead of scrolling through the edit window, you want to be able to call up just the data that are relevant to you. Here, we’ll show you variations of the list command in Stata that can help you.
Oftentimes, you might work with datasets in which variables need to be renamed. In this blog, we’ll show you how to rename variables in Stata.
To mark our first year, we've slashed all our prices in half. Order now to seize this limited opportunity!