Dates

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)

by daigw » Thu May 23, 2019 4:55 pm

How can dates be entered into Jamovi - if I export a Stata file with dates in there is no problem in that I get a column of numbers (so many days since day zero in Stata 1900 Jan 1st?) but is it possible to get dates into Jamovi displayed as eg 23/05/2019 but which can be used in calculations ie as an integer not text
Thanks
Dai
daigw
 
Posts: 3
Joined: Thu May 23, 2019 4:49 pm

by jonathon » Fri May 24, 2019 3:40 am

hi,

we don't (as yet) have a native date data type, but we can emulate it by having an integer data type (how many days since ...), and then add a label so that it displays as 23/05/2019 for example.

if you can send us a stata file with dates in it, i'll see about adding this.

with thanks
User avatar
jonathon
 
Posts: 926
Joined: Fri Jan 27, 2017 10:04 am

by daigw » Tue May 28, 2019 8:02 am

Thanks Jonathon
I attach a datafile (stata .dta converted to csv - it would not accept a .dta file type) with 2 date variables (dob & date1)
Many thanks for this

Dai
Attachments
sheep_weights.csv
(15.33 KiB) Downloaded 90 times
daigw
 
Posts: 3
Joined: Thu May 23, 2019 4:49 pm

by jonathon » Tue May 28, 2019 8:04 am

could you attach the .dta file?

with thanks
User avatar
jonathon
 
Posts: 926
Joined: Fri Jan 27, 2017 10:04 am

by daigw » Tue May 28, 2019 11:02 am

Hi Jonathon
The system will not allow me to attach a stata dta file but I could e mail it to you directly
thanks
Dai
daigw
 
Posts: 3
Joined: Thu May 23, 2019 4:49 pm

by jonathon » Tue May 28, 2019 10:33 pm

oh yup, send it through to contact <at> jamovi.org

with thanks
User avatar
jonathon
 
Posts: 926
Joined: Fri Jan 27, 2017 10:04 am


Return to Help