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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.