by David Lillis, Ph.D.

Today we see how to set up multiple graphs on the same page. We use the syntax  par(mfrow=(A,B)) [click to continue…]

Send to Kindle


Introduction to Time Series Analysis Webinar

Time Series are economic or other data that are collected over an extended period of time. Many clever methods have been developed to analyze time series, both to understand the factors that cause variation and to forecast future values..

Read the full article →

Actually, you can interpret some main effects in the presence of an interaction

One of those “rules” about statistics you often hear is that you can’t interpret a main effect in the presence of an interaction.

Stats professors seem particularly good at drilling this into students’ brains.

Unfortunately, it’s not true. At least not always.

Read the full article →

The Difference Between a Chi-Square Test and a McNemar Test

You may have heard of McNemar tests as a repeated measures version of a chi-square test of independence. This is basically true, and I wanted to show you how these two tests differ and what exactly, each one is testing.

Read the full article →

A Primer in Matrix Algebra for Data Analysts Webinar

At the center of multivariate statistical methods is the simultaneous consideration of multiple variables and the inherent complexity it introduces. Matrix/Linear algebra is a mathematical method particularly well-suited to dealing with multiple variables…

Read the full article →

Argggh! How Do I Output Tables and Graphs From Stata?

On my first assignment using Stata, I think I spent four or five hours trying to present my output in a “professional” form. The most creative method I heard about in class the next day was to copy the contents into Excel, create page breaks and then copy into Word.

SPSS makes it so easy to copy tables and graphs into another document. Why can’t Stata be easy?

Anyone who has used Stata has gone through this and many of you still are. No worries, help is on the way!..

Read the full article →

Loops in Stata: Making coding easy

We’ve already discussed using macros in Stata to simplify and shorten code.

Another great tool in your coding tool belt is loops. Loops allow you to run the same command for several variables at one time without having to write separate code for each variable.

This discussion could go on for pages and pages because there is much you can do with a loop…

Read the full article →

Macros in Stata, Why and How to Use Them

We finished the last blog with the confusing coding of:

local continuous educatexper wage age
foreachvar in `continuous'{
graph box `var’, saving(`var’,replace)

I admit it looks like a foreign language. Let me explain how simple it is to understand..

Read the full article →

Using Stata Efficiently to Understand Your Data

Most statistical software packages use a spreadsheet format for viewing the data. This helps you get a feeling for what you will be working with, especially if the data set is small. But what if your data set contains numerous variables and hundreds or thousands of observations? There is no way you can get warm and fuzzy by browsing through a large data set.

To help you get a good feel for your data you will need toutilize your software’s command or syntax editor to write a series of code for reviewing your data. Sounds complicated…

Read the full article →

How to Get SPSS GENLINMIXED Output Without the Model Viewer

So I was glad that SPSS became an option for generalized linear mixed models.

But that Model Viewer had led me to nearly give up that option. It’s that annoying. (Google it if you’re curious about the hate for the Model Viewer).

Anyway, there is now a way to get rid of it.

Read the full article →