Write and run SAS programs in your web browser

Regression Output Parameter Estimates

Accepted Solution Solved
Reply
New Contributor
Posts: 4
Accepted Solution

Regression Output Parameter Estimates

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! 

    


Accepted Solutions
Solution
‎03-12-2018 08:41 AM
New Contributor
Posts: 4

Re: Regression Output Parameter Estimates

Picture1.png

 

Here are the results I am looking for

View solution in original post


All Replies
Esteemed Advisor
Posts: 5,526

Re: Regression Output Parameter Estimates

What's the question?

PG
New Contributor
Posts: 4

Re: Regression Output Parameter Estimates

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

Super User
Posts: 13,523

Re: Regression Output Parameter Estimates

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.

 

New Contributor
Posts: 4

Re: Regression Output Parameter Estimates

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;
Super User
Posts: 23,700

Re: Regression Output Parameter Estimates

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? 

Solution
‎03-12-2018 08:41 AM
New Contributor
Posts: 4

Re: Regression Output Parameter Estimates

Picture1.png

 

Here are the results I am looking for

Super User
Posts: 23,700

Re: Regression Output Parameter Estimates

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. 

 

 

 

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

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