BookmarkSubscribeRSS Feed
nathan10
Calcite | Level 5
  1. The data set ONE on the next page shows consumer-report ratings (1-10 scale) on three aspects of each of seven makes of automobiles. Category=1 corresponds to a Dependability rating, category=2 to a Visual Appeal rating, and category=3 to a Performance rating.  The seven makes of automobiles, in order, are FORD, NISSAN, MAZDA, SAAB, SATURN, HONDA, and TOYOTA.  Write a SAS program to input the data and rearrange it to look like the second table (“FINAL”) below.  You must do this in such a way that the program will work regardless of what numbers (between 1 and 10) occur in each Rating category.  You may need more than one DATA or similar data-rearrangement step.
3 REPLIES 3
andreas_lds
Jade | Level 19

And what have you tried so far?

ChrisNZ
Tourmaline | Level 20

Really?

1.Don't ask us to do your homework.

2.Try and ask question (providing code) if something unexpected comes.

3.Avoid MS office documents.
ballardw
Super User

 

And where pray tell does the Make information come from?

Are you implying that Obs 1, 8 and 15 come from the same make? If so which one? Your starting data description is incomplete. And without explicit directions on where to find Make information likely going to teach very bad habits about constructing data.

 

I know I can put together a data set if proper descriptions are included but I suggest that whoever provided the "not a data set ONE" should be whipped with wet spaghetti noodles. Relying on a not stated order and number of responses to align data is asking for failed processes.

 

For instance what if the set one had 19 or 22 obs in it? What would the result look like?

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 567 views
  • 0 likes
  • 4 in conversation