cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Rozenzwaige2
Level I

Question about variable with hours

I have an end-of-work variable of the respondents. I want to set so that people who finish their workday at midnight or 3 AM will be considered as those who finish later, at the moment it presents me as someone who finishes their workday earlier.
How can I set this up?

 

The problematic observations are highlighted in the attached image:

Rozenzwaige2_0-1635171234591.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
dale_lehman
Level VII

Re: Question about variable with hours

I have attached a data table with a column formula that measures 24 hourly periods starting at 5AM and ending at 4:59AM.

View solution in original post

6 REPLIES 6
Thierry_S
Super User

Re: Question about variable with hours

Hi,

You will need to include the date (at least the day) in your timestamp; otherwise, JMP will not be able to figure out that the 3:00 AM is on the following day.

Best,

TS

Thierry R. Sornasse
Rozenzwaige2
Level I

Re: Question about variable with hours

The problem is that this is an hour without a date, the end hours of the work represent the hours that the respondents usually finish their workday, it is not an hour of any specific day. There is no way to define the beginning and end of the day?

(E.g. the day starts at 5:00 AM and ends at 4:59 AM)

Craige_Hales
Super User

Re: Question about variable with hours

Maybe add inhours(24) to any value < 8AM. You could do that in a formula column. I think you'll be trading one problem for another; the new axis will start at 8 hours and run to 32 hours.

Craige
dale_lehman
Level VII

Re: Question about variable with hours

 You can use the Date Difference function (a TimeDate function) even without a date.  I tried it with hourly data formatted the way you have it, and Date Difference does work correctly.  Just decide what hour you want to measure the differences from and enter that as one of the times to measure the differences relative to.

Rozenzwaige2
Level I

Re: Question about variable with hours

I'm quite an amateur at JMP I would very much appreciate it if you could explain in more detail how to do it

dale_lehman
Level VII

Re: Question about variable with hours

I have attached a data table with a column formula that measures 24 hourly periods starting at 5AM and ending at 4:59AM.