BookmarkSubscribeRSS Feed
Matim
Obsidian | Level 7

Hello,

 

I'm working on a demo activity in SAS Studio and I read the instructions and explanations. After reading the instructions and explanations about each block of code in each statement, I ran the program and then I get one warning stating "Output 'control plot' was not created. Make sure that the output object name, label, or path is spelled correctly. Also, verify that the appropriate procedure options are used to produce the requested output object. For example, verify that the NOPRINT option is not used." and one error stating "Cannot find control level for effect Heating_QC." My code resembles the code viewed in the demo, but I got a warning and an error after running the program.  How can I resolve these issues? Any help will be greatly appreciated. Here is the code below for reference.

 

/*st102d03.sas*/
ods graphics;

ods select lsmeans diff diffplot controlplot;
proc glm data=STAT1.ameshousing3
               plots(only)=(diffplot(center) controlplot);
      class Heating_QC;
      model SalePrice=Heating_QC;
      lsmeans Heating_QC / pdiff=all
                                           adjust=tukey;
      lsmeans Heating_QC / pdiff=control('Average/Typical')
                                           adjust=dunnett;
      format Heating_QC $Heating_QC.;
      title "Post-Hoc Analysis of ANOVA - Heating Quality as Predictor";
run;
quit;

title;

 

 

1 REPLY 1
dhliakau
Calcite | Level 5

Hey, they failed to inform us that the values in the Heating_QC were formated, if you look at the dataset, there are no Average/Typical values present, if you use lsmeans Heating_QC / pdiff=control('TA')  the script is working properly.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 865 views
  • 0 likes
  • 2 in conversation