12-09-2016 01:00 PM
I have data for total sleep time in long format where there are several rows for each subject (somewhere between 8 and 14). Is there anyway to get an average total sleep time for each subject without having to convert the dataset to wide format? I am assuming that the code below won't work...
Need further help from the community? Please ask a new question.