Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8288947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:23:21+00:00 2026-06-08T12:23:21+00:00

Possible Duplicate: (cross-post from stats.SE, but I was sent here by a mod instead)

  • 0

Possible Duplicate: (cross-post from stats.SE, but I was sent here by a mod instead)
How to get SSE for predictions using SAS?

enter image description here

I’m trying to get the sum of squared errors for my predictions in SAS, but I’m not sure I’m doing it correctly. I’m not sure I fully understand the output I’m getting with my code (specifically, stdp):

data tridata;
infile '\data.dat';
    input x1 x2 x3 y;
    proc sort data = tridata; by x3;

proc reg data = tridata;
    model y=x3;
    plot r. * x3;
    output out = tridata2 r = resid p = pred stdp = err;
run;
quit;

/* Send your errors to a file */
data _NULL_;
    file '\data-err.dat';
    set tridata2;
    put err;
    where y eq .;
run;
quit;

This gives me a file of errors for each estimate. I imported these into Excel, squared each one, and summed them up to give me a number. Is this the correct method? Based on the description of my project, I was under the impression that I should get an SSE_test for each predicted value. See below:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:23:23+00:00Added an answer on June 8, 2026 at 12:23 pm

    First of all , STDP is Standard Error of the mean predicted value[this is used in calculating 95% confidence/prediction intervals]. This is not the one you need to square and sum up to get the SSE.

    This is what you need to do:

    Where you had “r = resid” in the output statement in PROC REG is the measure of your error. It is simply Actual – Predicted. Since since sometimes your model may over-predict and some times under predict. This R, Residual, could be a positive value or a negative value.

    In order to make everything positive, we just square the residual values and get SQUARED ERRORS for each of the predictions you’ve made.

    Sum up all the SQAURED ERRORS and you get SUM OF SQURED ERRORS. This will be a single statistic(or a scalar).

    As far as I know, you cannot calculate your SSE unless you have the actual values to hand.

    You may refer to http://en.wikipedia.org/wiki/Errors_and_residuals_in_statistics specifically the last paragraph on that page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Cross platform programming I've written some code using wxwidgets in c++. But
Possible Duplicate: Cross-thread operation not valid: Control accessed from a thread other than the
Possible Duplicate: JQuery ajax cross domain I need to load content from another websites
Possible Duplicate: Cross-thread operation not valid: Control accessed from a thread other than the
Possible Duplicate: How to cross compile from Mac OS X to Linux x86? I
Possible Duplicate: Cross-Domain Requests with jQuery $(function () { (function getFeed() { $ .get('http://feeds.bbci.co.uk/news/world/rss.xml')
Possible Duplicate: Cross-thread operation not valid: Control accessed from a thread other than the
Possible Duplicate: Cross-thread operation not valid: Control accessed from a thread other than the
Possible Duplicate: Cross-thread operation not valid: Control accessed from a thread other than the
Possible Duplicate: Cross-thread operation not valid: Control accessed from a thread other than the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.