sed.min.AP: Estimate Time in Sedentary

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/sed.min.AP.R

Description

This function to calculates the minutes spent sitting/lying.

Usage

1
sed.min.AP(posture, epoch = 1)

Arguments

posture

posture is a vector indicating sitting (0), standing (1) and stepping (2)

epoch

numeric value indicating what epoch (in seconds) the data are in (e.g. 60 = 1 minute epochs). The default value is 1 second

Details

The default settings of the AP assign a met value of 1.25 to sitting, 1.4 to standing and estimates a met value for stepping activities. Cadence is used to estimate mets for stepping. With these settings all standing activity will be considered sedentary (e.g. < 1.5 mets). In the second-by-second function in this package standing met values are changed to 1.5 so that standing is considered a light intensity activity. Thus the only events considered sedentary are sitting/lying events

Value

a numeric value indicating minutes spent sedentary

Author(s)

Kate Lyden

See Also

lit.min.AP mvpa.min.AP stand.min.AP step.min.AP

Examples

1
2
3
4
5
6
7
8
	
data(second.by.second.data)
posture <- second.by.second.data$ap.posture
	
sed.min.AP(posture,epoch=1)

# summarize by date
tapply(second.by.second.data$ap.posture, second.by.second.data$date, sed.min.AP,epoch=1)

Example output

[1] 9683.5
2012-06-07 2012-06-08 2012-06-09 2012-06-10 2012-06-11 2012-06-12 2012-06-13 
  720.7000  1265.8667  1182.6667  1142.6500  1187.2167  1222.8167  1179.7167 
2012-06-14 2012-06-15 
 1180.6333   601.2333 

activpalProcessing documentation built on May 2, 2019, 2:17 a.m.