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!
What's the question?
How do I get the Parameter Estimates back to summarizing the Parameters instead of detailing each one in the list?
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.
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;
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?
Here are the results I am looking for
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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.