dpwindred / sleepreg

Repository for 'sleepreg' package, for calculating Sleep Regularity Index scores from accelerometer or sleep diary data
GNU Lesser General Public License v3.0
11 stars 1 forks source link

Format csv files for SRI_from_accel_csv #4

Open star82 opened 1 year ago

star82 commented 1 year ago

Hi! First of all, many thanks for making this package available! I am trying to run the SRI_from_accel_csv using raw Actiwatch data and I am encountering two issues: 1) how do I deal with missing data? the original software code them as NaN. I tried to replace this label with NA (in V2-V4) and also just to leave the cells blank, but it still doesn't generate the SRI. 1) I have single axis data (activity count). When I formatted my csv files I added NaN to V3 and V4, but, perhaps because of the above mentioned issue, the function doesn't work. How should I format my files? Many thanks in advance for your help