BookmarkSubscribeRSS Feed
4MUL8R
Calcite | Level 5

I have 15,000 rows of data on a test vehicle.  The vehicle was driven by a robot on a test dynamometer at seven test speed setpoints.  However, the actual speed was recorded in the data, as opposed to the setpoints.  So, the data does not uniformly state 0, 15, 20, ... , 75 mph.  Instead, the data column reads 14.8, 14.9, 15,0, 15.1, 15.0, ... , 14.8 as the vehicle control system keeps the speed near each of the setpoints.  Small variability here is not important to the physical test of the vehicle.

 

I can filter the data to include only rows where speed lies between a series of speed ranges.  However, for each speed range, I'd like to assign or create a variable that reports the setpoint for that range.  From that setpoint, being categoric, I could perform ANOVA and obtain the desired measurements from the vehicle for each speed setpoint.

 

In Enterprise Guide 7.13, is there a way to create a new column having inferred or deduced from the recorded speed what the setpoint was?

2 REPLIES 2
ballardw
Super User

It looks like you could do one of two things.

1) Add a variable that is the result of this calculation:

   newspeed = round(speed, 5);

which would round to the nearest multiple of 5

2) create a custom format and assign the format in the procedure and not add a new variable.

4MUL8R
Calcite | Level 5

Thank you for the help.  I found the round function useful, even in EG.

 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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
  • 2 replies
  • 594 views
  • 0 likes
  • 2 in conversation