• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
The Analysis Factor

The Analysis Factor

Statistical Consulting, Resources, and Statistics Workshops for Researchers

  • Home
  • Our Programs
    • Membership
    • Online Workshops
    • Free Webinars
    • Consulting Services
  • About
    • Our Team
    • Our Core Values
    • Our Privacy Policy
    • Employment
    • Collaborate with Us
  • Statistical Resources
  • Contact
  • Blog
  • Login

SAS

Two Recommended Solutions for Missing Data: Multiple Imputation and Maximum Likelihood

by Karen Grace-Martin 16 Comments

Two methods for dealing with missing data, vast improvements over traditional approaches, have become available in mainstream statistical software in the last few years.

Both of the methods discussed here require that the data are missing at random–not related to the missing values. If this assumption holds, resulting estimates (i.e., regression coefficients and standard errors) will be unbiased with no loss of power.

The first method is Multiple Imputation (MI). Just like the old-fashioned imputation [Read more…] about Two Recommended Solutions for Missing Data: Multiple Imputation and Maximum Likelihood

Tagged With: maximum likelihood, Missing Data, Multiple Imputation, R, SAS, SPSS

Related Posts

  • Multiple Imputation in a Nutshell
  • EM Imputation and Missing Data: Is Mean Imputation Really so Terrible?
  • Statistical Software Access From Home
  • Member Training: What’s the Best Statistical Package for You?

An Easy Way to Reverse Code Scale items

by Karen Grace-Martin 35 Comments

Before you run a Cronbach’s alpha or factor analysis on scale items, it’s generally a good idea to reverse code items that are negatively worded so that a high value indicates the same type of response on every item.

So for example let’s say you have 20 items each on a 1 to 7 scale. For most items, a 7 may indicate a positive attitude toward some issue, but for a few items, a 1 indicates a positive attitude.

I want to show you a very quick and easy way to reverse code them using a single command line. This works in any software. [Read more…] about An Easy Way to Reverse Code Scale items

Tagged With: recode, reverse coding, SAS, SPSS

Related Posts

  • Multiple Imputation in a Nutshell
  • Statistical Software Access From Home
  • Member Training: What’s the Best Statistical Package for You?
  • Tricks for Using Word to Make Statistical Syntax Easier

Dummy Code Software Defaults Mess With All of Us

by Karen Grace-Martin Leave a Comment

In my last blog post, I wrote about a mistake I once made when I didn’t realize the defaults for dummy coding were different in two SPSS procedures (Binary Logistic and GEE).

Ironically, about the same time I wrote it, I was having a conversation with Ann Maria de Mars on Twitter.  She was trying to figure out why her logistic regression model fit results were identical in SAS Proc Logistic and SPSS Binary Logistic, but the coefficients in SAS were half those of SPSS.

It was ironic because I, of course, didn’t recognize it as the same issue and wasn’t much help.

But Ann Maria investigated and discovered that it came down to differences in the defaults for coding categorical predictors in SAS and SPSS that did it.  Her detailed and humorous explanation is here.

Some takeaways for you, the researcher and data analyst:

1. Give yourself a break if you hit a snag.  Even very experienced data analysts, statisticians who understand what they’re doing, get stumped sometimes.  Don’t ever think that performing data analysis is an IQ test.  You’re bringing together many skills and complex tools.

2. Learn thy software.  In my last post, I phrased it “Know thy software”, but this is where you get to know it.  Snags are good opportunities to investigate the details of your software, just like Ann Maria did.  If you can think of it as a challenge to figure out–a puzzle–it can actually be fun.

Make friends with your syntax manuals.

3. Get help when you need it. Statistical software packages *are* complex tools. You don’t have to know everything to use them

Ask colleagues.  Call customer support. Call a stat consultant.  That’s what they’re there for.

4. A great way to check your work is to run your test two different ways.  It’s another reason to be able to use at least two stat software packages.  I’m not suggesting you have to run every analysis twice.  But when a result looks strange, or you want to double-check a specific important model, this can be a good strategy for testing things out.

It may be that your results aren’t telling you what you think they are.


Bookmark and Share

[Logistic_Regression_Workshop]

Tagged With: dummy coding, logistic regression, SAS, SPSS

Related Posts

  • Opposite Results in Ordinal Logistic Regression, Part 2
  • Opposite Results in Ordinal Logistic Regression—Solving a Statistical Mystery
  • Multiple Imputation in a Nutshell
  • Statistical Software Access From Home

When Dummy Codes are Backwards, Your Stat Software may be Messing With You

by Karen Grace-Martin 2 Comments

One of the tricky parts about dummy coded (0/1) variables is keeping track of what’s a 0 and what’s a 1.

This is made particularly tricky because sometimes your software switches them on you.

Here’s one example in a question I received recently.  The context was a Linear Mixed Model, but this can happen in other procedures as well.

I dummy code my categorical variables “0” or “1” but for some reason in the [Read more…] about When Dummy Codes are Backwards, Your Stat Software may be Messing With You

Tagged With: dummy coding, Reference Group

Related Posts

  • Dummy Coding in SPSS GLM–More on Fixed Factors, Covariates, and Reference Groups, Part 1
  • SPSS GLM or Regression? When to use each
  • SPSS GLM: Choosing Fixed Factors and Covariates
  • Centering a Covariate to Improve Interpretability

Mixed Models for Logistic Regression in SPSS

by Karen Grace-Martin 47 Comments

Can I use SPSS MIXED models for (a) ordinal logistic regression, and (b) multi-nomial logistic regression?

Every once in a while I get emailed a question that I think others will find helpful.  This is definitely one of them.

My answer:

No.

(And by the way, this is all true in SAS as well.  I’ll include the SAS versions in parentheses). [Read more…] about Mixed Models for Logistic Regression in SPSS

Tagged With: generalized linear mixed model, SPSS

Related Posts

  • How to Get SPSS GENLINMIXED Output Without the Model Viewer
  • Specifying a Random Intercept or Random Slope Model in SPSS GENLINMIXED
  • What is the Purpose of a Generalized Linear Mixed Model?
  • Opposite Results in Ordinal Logistic Regression, Part 2

When the Hessian Matrix Goes Wacky

by Karen Grace-Martin 10 Comments

If you have run mixed models much at all, you have undoubtedly been haunted by some version of this very obtuse warning:

“The Hessian (or G or D) Matrix is not positive definite. Convergence has stopped.”

Or “The Model has not Converged. Parameter Estimates from the last iteration are displayed.”

What on earth does that mean?

Let’s start with some background. If you’ve never taken matrix algebra, [Read more…] about When the Hessian Matrix Goes Wacky

Tagged With: Hessian Martix Not Positive Definite, mixed model

Related Posts

  • Mixed Models: Can you specify a predictor as both fixed and random?
  • Mixed Up Mixed Models
  • Multilevel, Hierarchical, and Mixed Models–Questions about Terminology
  • Six Differences Between Repeated Measures ANOVA and Linear Mixed Models

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Go to page 5
  • Go to Next Page »

Primary Sidebar

This Month’s Statistically Speaking Live Training

  • Member Training: A Gentle Introduction to Bootstrapping

Upcoming Free Webinars

Getting Started with R
3 Overlooked Strengths of Structural Equation Modeling
4 Critical Steps in Building Linear Regression Models

Upcoming Workshops

    No Events

Copyright © 2008–2022 The Analysis Factor, LLC. All rights reserved.
877-272-8096   Contact Us

The Analysis Factor uses cookies to ensure that we give you the best experience of our website. If you continue we assume that you consent to receive cookies on all websites from The Analysis Factor.
Continue Privacy Policy
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT