BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
bmccoig0
Fluorite | Level 6

I am prepping for a class example and ran into the following, 

 

I am sure that I have selected something  - i have  been using the baseball example in sashelp for liner regression 

 

I was getting this the parameter estimate summarized - now it lists out each variable separately with all the details

 

I used logsalary 

 

variable intercepts 

nhits

nrun

yrmajor and it lists each as a separate item

 

Thank you in advance! 

    

1 ACCEPTED SOLUTION

Accepted Solutions
bmccoig0
Fluorite | Level 6

Picture1.png

 

Here are the results I am looking for

View solution in original post

7 REPLIES 7
PGStats
Opal | Level 21

What's the question?

PG
bmccoig0
Fluorite | Level 6

How do I get the Parameter Estimates back to summarizing the Parameters instead of detailing each one in the list? 

ballardw
Super User

As a minimum show the code used. If you get odd results you might look at the log and post the log with any notes, warnings or errors.

Best is to post code or log items in a code box opened using the forum {I} icon.

 

bmccoig0
Fluorite | Level 6
Thank you in advance!!! 
/*
*
* Task code generated by SAS Studio 3.7
*
* Generated on '3/6/18, 4:26 PM'
* Generated by 'bmccoig0'
* Generated on server 'ODAWS01.ODA.SAS.COM'
* Generated on SAS platform 'Linux LIN X64 3.10.0-693.11.6.el7.x86_64'
* Generated on SAS version '9.04.01M5P09132017'
* Generated on browser 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36'
* Generated on web client 'https://odamid.oda.sas.com/SASStudio/main?locale=en_US&zone=GMT-05%253A00&https%3A%2F%2Fodamid.oda.sas.com%2FSASStudio%2F='
*
*/

ods noproctitle;
ods graphics / imagemap=on;

proc glmselect data=SASHELP.BASEBALL outdesign(addinputvars)=Work.reg_design;
class nAtBat nHome YrMajor / param=glm;
model logSalary=nAtBat nHome YrMajor / showpvalues selection=none;
run;

proc reg data=Work.reg_design alpha=0.05 plots(only)=(diagnostics residuals
partial observedbypredicted);
where nAtBat is not missing and nHome is not missing and YrMajor is not
missing;
ods select DiagnosticsPanel ResidualPlot PartialPlot ObservedByPredicted;
model logSalary=&_GLSMOD / partial;
run;
quit;

proc delete data=Work.reg_design;
run;
Reeza
Super User

You're treating several variables as categorical when they really appear continuous:

class nAtBat nHome YrMajor / param=glm;

 

Are you intending to create dummy variables for every level of nAtBat and run a regression with that? 

bmccoig0
Fluorite | Level 6

Picture1.png

 

Here are the results I am looking for

Reeza
Super User

You didn't answer the questions.

Are you intending to create dummy variables for every level of nAtBat and run a regression with that? 

 

I suspect you don't understand the code you're using, so I would suggest checking the documentation on what the CLASS statement is doing. You're using it incorrectly. 

 

 

 

 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 1168 views
  • 1 like
  • 4 in conversation