I honestly have no clue why that is the case
@JoshuaG wrote:
I honestly have no clue why that is the case
SAS data set names cannot have spaces in them. They cannot have any special symbol except an underscore. They cannot begin with numbers.
Thanks for clarifying. I am able to run the code now but all the graphs that are supposed to show up given the solution, are not coming up for me.
You may need to turn on the graphics first, use this command before PROC REG
ods graphics on;
Also you have hours and score in the wrong place in the MODEL statement.
I never download attachments. If you need to show me output, make a screen capture and include it in your reply via the "Insert Photos" icon.
proc reg data = drivingclass;
model Score = Hours;
ods output anova= ANOVA;
ods output ParameterEstimates=ParameterEstimates;
run;quit;
Its hours = score?
@JoshuaG wrote:
proc reg data = drivingclass;
model Score = Hours;
ods output anova= ANOVA;
ods output ParameterEstimates=ParameterEstimates;
run;quit;
Its hours = score?
no, sorry, my mistake, score=hours is correct!
The instructions tell me to use a ODS Select statement
" Run a regression model to test the relationship between class hour (independent variable) and
performance score (dependent variable).
Use ods trace statement to generate the ANOVA table and the parameter estimates outputs only from
the regression results (Use ODS select). (You need to check the log file for the table names for
ANOVA and parameter estimates) and then save these two tables into SAS data using the following
commands"
ODS SELECT limits the output to only the desired tables, which according to your instructions are Anova and ParameterEstimates.
When you do that you cannot see the other output including the graphs. So SAS isn't showing other output such as graphs because you've told it to do that.
If you want to see all output but save Anova and ParameterEstimates tables use the ODS OUTPUT statements to save the tables.
ODS TRACE ON/OFF is used to figure out the table names.
ODS SELECT/EXCLUDE controls what is displayed as output.
ODS OUTPUT saves the output indicated to a data set name.
Thank you so much! Just to confirm, I should be good with what the directions are telling me to do? I am about to email my professor just to make sure as well.
What should my ods select statement be then?
Read the instructions again to see what it states and which tables should be displayed. You know the syntax so it's figuring out the instructions/tables now.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.