References for Power in Structural Equation Modeling Kaplan, D. (1995). Statistical power in structural equation modeling. In R. H. Hoyle (Ed.), Structural Equation Modeling: Concepts, Issues, and Applications (pp. 100-117). Thousand Oaks, CA: Sage. Kaplan, D. & Wegner, R. N. (1993). Asymptotic independence and separability in covariance structure models: Implications for specification error, power, andContinue reading “Resources for Power in SEM”
Category Archives: Uncategorized
Stata: Dummy Coding
This post will illustrate how to: Use the generate and replace commands to create dummy variables. A second use of the generate command to create dummy variables that is simpler that #1. Using tabluate to create dummy variables. Dummy coding is used when you have nominal categories, meaning the groups are assigned a value forContinue reading “Stata: Dummy Coding”
Stata: Labeling & Recoding Data
Labeling Data In order to assign labels to values of your variable, you can use either the variables manager or command syntax. For example, if you wanted to assign labels to each condition, where 1 represents No treatment, 2 represents Treatment A, 3 represents Treatment B, and 4 represents Treatment C, you could double-click onContinue reading “Stata: Labeling & Recoding Data”
Stata: Do-files and Log-files
As you begin to work with datasets, there are two record and save your commands and actions in Stata. Creating do-files Do-files allow you to record all of your commands. There are a number of benefits to using do-files. By using do-files to run your commands, you have a copy of what you did, whichContinue reading “Stata: Do-files and Log-files”
Stata: Reshaping Data
You will often have to reshape your data or change the name or values of your data to analyze it more easily. First, we’ll show you how to transform your data between “long” format, where there are multiple lines of data for every person, and “wide” format, where each subject has only one row andContinue reading “Stata: Reshaping Data”
Stata: Planned Comparisons with the test command
This post will show you how to: Run a one-way ANOVA using an independent variable with four levels. Use planned comparisons to contrast levels of the independent variable. We will use the built-in dataset systolic. Examining the data We will treat the systolic variable as the outcome and drug as the independent variable. Let’s lookContinue reading “Stata: Planned Comparisons with the test command”
Stata: Oneway ANOVA
This post will show how to use the anova and loneway commands in Stata to compute a oneway ANOVA. We will use the auto dataset for this illustration. We will use price as the outcome variable and foreign as the factor. Let’s initially look at descriptive statistics for price stratified by foreign. So it looksContinue reading “Stata: Oneway ANOVA”
Stata: Reading in Comma Separated Files
This post will show how to read in comma separated files (also known as .csv files) into Stata. I will show you how to use both syntax and point-and-click. Syntax You can import csv files using the insheet command. The using auto.csv statement just tells Stata the file name of the csv file. If theContinue reading “Stata: Reading in Comma Separated Files”
Stata: Descriptive Statistics – Mean, median, variability
Descriptive Statistics For this tutorial we are going to use the auto dataset that comes with Stata. To load this data type The auto dataset has the following variables. Suppose we want to get some summarize statistics for price such as the mean, standard deviation, and range. We’ll use the summarize command. Now let’s addContinue reading “Stata: Descriptive Statistics – Mean, median, variability”