• 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
  • About
    • Our Programs
    • Our Team
    • Our Core Values
    • Our Privacy Policy
    • Employment
    • Guest Instructors
  • Membership
    • Statistically Speaking Membership Program
    • Login
  • Workshops
    • Online Workshops
    • Login
  • Consulting
    • Statistical Consulting Services
    • Login
  • Free Webinars
  • Contact
  • Login

linear model

R is Not So Hard! A Tutorial, Part 2: Variable Creation

by guest 5 Comments

by David Lillis, Ph.D.

In Part 1 we installed R and used it to create a variable and summarize it using a few simple commands. Today let’s re-create that variable and also create a second variable, and see what we can do with them.

As before, we take height to be a variable that describes the heights (in cm) of ten people. Type the following code to the R command line to create this variable.

height = c(176, 154, 138, 196, 132, 176, 181, 169, 150, 175)

Now let’s take weight to be a variable that describes the weights (in kg) of [Read more...] about R is Not So Hard! A Tutorial, Part 2: Variable Creation

Tagged With: linear model, lm, plot, R

Related Posts

  • R Is Not So Hard! A Tutorial, Part 5: Fitting an Exponential Model
  • Linear Models in R: Improving Our Regression Model
  • Statistical Software Access From Home
  • Member Training: What’s the Best Statistical Package for You?

Assumptions of Linear Models are about Residuals, not the Response Variable

by Karen Grace-Martin 6 Comments

I recently received a great question in a comment about whether the assumptions of normality, constant variance, and independence in linear models are about the residuals or the response variable.

The asker had a situation where Y, the response, was not normally distributed, but the residuals were.

Quick Answer:  It’s just the residuals.

In fact, if you look at any (good) statistics textbook on linear models, you’ll see below the model, stating the assumptions: [Read more…] about Assumptions of Linear Models are about Residuals, not the Response Variable

Tagged With: Assumptions, linear model

Related Posts

  • ANCOVA Assumptions: When Slopes are Unequal
  • The Assumptions of Linear Models: Explicit and Implicit
  • Why ANOVA is Really a Linear Regression, Despite the Difference in Notation
  • Using Pairwise Comparisons to Help you Interpret Interactions in Linear Regression

Random Intercept and Random Slope Models Webinar

by Karen Grace-Martin 2 Comments

This page is out-of-date.

Please go to the newer version of the page: Random Intercept and Random Slope Models COSA webinar.

Tagged With: linear model, mixed model, random intercept, Random Slope Model

Related Posts

  • The Difference Between Random Factors and Random Effects
  • Member Training: Generalized Linear Models
  • Multilevel, Hierarchical, and Mixed Models–Questions about Terminology
  • Member Training: Power Analysis and Sample Size Determination Using Simulation

The Assumptions of Linear Models: Explicit and Implicit

by Karen Grace-Martin 4 Comments

If you’ve compared two textbooks on linear models, chances are, you’ve seen two different lists of assumptions.

I’ve spent a lot of time trying to get to the bottom of this, and I think it comes down to a few things.

1. There are four assumptions that are explicitly stated along with the model, and some authors stop there.

2. Some authors are writing for introductory classes, and rightfully so, don’t want to confuse students with too many abstract, and sometimes untestable, [Read more…] about The Assumptions of Linear Models: Explicit and Implicit

Tagged With: GLM, linear model, regression assumptions

Related Posts

  • Assumptions of Linear Models are about Residuals, not the Response Variable
  • Continuous and Categorical Variables: The Trouble with Median Splits
  • Why ANOVA is Really a Linear Regression, Despite the Difference in Notation
  • Using Pairwise Comparisons to Help you Interpret Interactions in Linear Regression

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2

Primary Sidebar

This Month’s Statistically Speaking Live Training

  • February Member Training: Choosing the Best Statistical Analysis

Upcoming Workshops

  • Logistic Regression for Binary, Ordinal, and Multinomial Outcomes (May 2021)
  • Introduction to Generalized Linear Mixed Models (May 2021)

Read Our Book



Data Analysis with SPSS
(4th Edition)

by Stephen Sweet and
Karen Grace-Martin

Statistical Resources by Topic

  • Fundamental Statistics
  • Effect Size Statistics, Power, and Sample Size Calculations
  • Analysis of Variance and Covariance
  • Linear Regression
  • Complex Surveys & Sampling
  • Count Regression Models
  • Logistic Regression
  • Missing Data
  • Mixed and Multilevel Models
  • Principal Component Analysis and Factor Analysis
  • Structural Equation Modeling
  • Survival Analysis and Event History Analysis
  • Data Analysis Practice and Skills
  • R
  • SPSS
  • Stata

Copyright © 2008–2021 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