BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
tom_grant
SAS Super FREQ
Run
proc print data=DRIVINGCLASS;
run;
It will show you the variable names
JoshuaG
Calcite | Level 5

I have that on line 14, do I need to do it again?

JoshuaG
Calcite | Level 5
83 proc print data = drivingclass;
84 run;

I mean 83/84 on the log file
tom_grant
SAS Super FREQ
Can you cut & paste the results of proc print (i.e. the report - not the log)
JoshuaG
Calcite | Level 5

Obs Campus Hours Score123456789101112131415161718192021222324252627282930

A0.542.5
A1.068.5
A1.589.0
A2.0105.3
A2.5112.3
A3.0130.2
A3.5159.5
A4.0161.3
A4.5184.9
A5.0191.2
A5.5200.7
A6.0210.3
A6.5210.5
A7.0228.4
A8.0252.0
B0.550.6
B1.080.7
B1.599.6
B2.0111.8
B2.5125.7
B3.0131.5
B3.5151.2
B4.0160.5
B4.5182.2
B5.0189.9
B5.5201.7
B6.0203.8
B6.5209.4
B7.0230.1
B8.0224.0
tom_grant
SAS Super FREQ
So I think your model statement should be:
model Score = Hours;
Rick_SAS
SAS Super FREQ

Here is an important fact about PROC REG: It is an example of an interactive procedure. It does not exit until you submit the QUIT statement. When the procedure quits, it will create the ODS tables. So try adding a 
QUIT;

statement after the RUN; statement and see whether the errors for the ODS tables are resolved.

JoshuaG
Calcite | Level 5

I added quit but it is still giving me the warning signs

forcemani
Calcite | Level 5

Hi! I am somewhat new to using RStudio and I am having issues with running an ANOVA on my data set. I am comparing speeds of 3 populations, Red, Black, and Hybrid. I have 20 individuals for both the Black and Hybrid populations and 28 for the Red population. When I run the test with the Black and Hybrid everything is fine. However, when I run the Red population compared to either of the others I get an error for "variable lengths differs". I can compare the speed for all 3 populations together and get values so I am not sure what's going on. The code I use and the error I get are on the bottom.

 

summary(aov(formula = handle.Hybridonly$Speed ~ handle.Redonly$Speed))

 

Error in h(simpleError(msg, call)) :

error in evaluating the argument 'object' in selecting a method for function 'summary': variable lengths differ (found for 'handle.Redonly$Speed')

 

I would be thankfull for any help!

Reeza
Super User
I think you're asking in the wrong forum, this is for the SAS language. For R coding, use the R Studio forum or StackOverflow with the R tag.
https://community.rstudio.com/

SAS Innovate 2025: Register 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!

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
  • 39 replies
  • 2967 views
  • 1 like
  • 6 in conversation