BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
hein68
Quartz | Level 8

I have three time variables in the time8 format, like this:

 

id           mod1    mod2    mod3

232791 0:50:29 0:34:49 0:36:41
234068 0:40:50 2:28:09 0:36:08

 

I need to get means and standard deviations on the number of minutes.  What time format should I be using?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

If you want to do calculations on minutes then you will need to convert your values from seconds into minutes by dividing by 60.

 

View solution in original post

4 REPLIES 4
PeterClemmensen
Tourmaline | Level 20

How do you want to do this? With PROC SUMMARY?

 

Also, do you want do do get the statistics by id, variables or overall?

hein68
Quartz | Level 8

I want to get the overall mean and standard deviation for the mod1, mod2, and mod3 variables.

 

I was hoping to create new time variables with a format so that when I do the summary statistics the results come out in minutes, something like 37.2 (minutes) mean +- 5.3 (minutes), standard deviation

 

thanks!

Tom
Super User Tom
Super User

If you want to do calculations on minutes then you will need to convert your values from seconds into minutes by dividing by 60.

 

hein68
Quartz | Level 8

Yup that did the trick.  Thanks!!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 581 views
  • 2 likes
  • 3 in conversation