I want to create a variable that averages the data over one minute from a larger set of data
1 view (last 30 days)
Cris LaPierre on 23 Oct 2021
Not exactly sure what data looks like. I would use groupsummary with the groupbin set the 'minute' and the methods set to 'mean' to average the data into one-minute bins. This assumes the data contains the heart rate at that second, and not just an indication of if the heart beat.