• 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

lm

Linear Models in R: Improving Our Regression Model

by guest Leave a Comment

by David Lillis, Ph.D.

Last time we created two variables and used the lm() command to perform a least squares regression on them, and diagnosing our regression using the plot() command.

Just as we did last time, we perform the regression using lm(). This time we store it as an object M. [Read more…] about Linear Models in R: Improving Our Regression Model

Tagged With: fitting, leverage, lines, lm, plotting, Q-Q plot, R, Regression, residuals

Related Posts

  • Linear Models in R: Diagnosing Our Regression Model
  • Linear Models in R: Plotting Regression Lines
  • R Is Not So Hard! A Tutorial, Part 5: Fitting an Exponential Model
  • Incorporating Graphs in Regression Diagnostics with Stata

R Is Not So Hard! A Tutorial, Part 5: Fitting an Exponential Model

by guest 10 Comments

by David Lillis, Ph.D.

In Part 3 and Part 4 we used the lm() command to perform least squares regressions. We saw how to check for non-linearity in our data by fitting polynomial models and checking whether they fit the data better than a linear model. Now let’s see how to fit an exponential model in R.

As before, we will use a data set of counts (atomic disintegration events that take place within a radiation source), taken with a Geiger counter at a nuclear plant.

The counts were registered over a 30 second period for a short-lived, man-made radioactive compound. We read in the data and subtract the background count of 623.4 counts per second in order to obtain [Read more...] about R Is Not So Hard! A Tutorial, Part 5: Fitting an Exponential Model

Tagged With: linear model, linear regression, lm, R

Related Posts

  • Linear Models in R: Improving Our Regression Model
  • R Is Not So Hard! A Tutorial, Part 4: Fitting a Quadratic Model
  • R is Not So Hard! A Tutorial, Part 2: Variable Creation
  • What R Commander Can do in R Without Coding–More Than You Would Think

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?

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