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 174877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:36:03+00:00 2026-05-11T13:36:03+00:00

Support.sas.com provides this syntax for creating a prediction ellipse. The output dataset includes only

  • 0

Support.sas.com provides this syntax for creating a prediction ellipse. The output dataset includes only the correlation results for the dataset. Is there any way to get information for the individual cases, such as labeling them in the graph or having the output include values for the individual cases?

I’ve tried adding the ID option to this code but was unsuccessful.

Scatter Plot with Prediction Ellipses

ods graphics on;  proc corr data=fish1     plots=scatter(alpha=.20 .30);     var Height Width;  run;  ods graphics off; 
  • 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. 2026-05-11T13:36:03+00:00Added an answer on May 11, 2026 at 1:36 pm

    If the data doesn’t have to be printed on the graph itself, you can get observation level data shown as a mouse-over tip by using the imagemap=on ods option. This only applies to the html destination, though. By default, your Height and Weight and observation number values will be shown in the tip. The ID statment just lets you add more.

    ods graphics on /imagemap=on; ods html; proc corr data=fish1   plots=scatter(alpha=.20 .30);   var Height Width; run; ods html close; ods graphics off; 

    Update: Here’s an easy way to get some data values printed on the plot. If you change datalabel=weight to datalabel=height it will print the height values for each observation instead. This uses the sgplot proc instead of the plots=scatter statement inside proc corr. Because of this the number of observations and the correlation are not printed on the plot but I’m sure you could find a way to add it if you needed.

    ods graphics on /imagemap=on; ods html; proc sgplot data=Fish1;   scatter x=Height y=Width /datalabel=weight;   ellipse x=Height y=Width / alpha=.2;   ellipse x=Height y=Width / alpha=.3;   keylegend  / location=outside position=bottom; run; ods html close; ods graphics off; 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 120k
  • Answers 120k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Looks like the answer was buried in the comments for… May 12, 2026 at 12:09 am
  • Editorial Team
    Editorial Team added an answer Development Speed: WebForms Performance Speed: MVC Ease of Use: WebForms… May 12, 2026 at 12:09 am
  • Editorial Team
    Editorial Team added an answer Well it appears that you can solve it by the… May 12, 2026 at 12:09 am

Related Questions

I am running SAS version 8.1 on the OpenVMS 8.3 platform. I have tried
CString is quite handy, while std::string is more compatible with STL container. I am
I have a SQL Server that's currently x86, and I'd like to upgrade it
I've tried this with a couple of different plugins, so I'm sure it's not

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.