agcalibrate | R Documentation |
This function uses a C++ implementation of the GGIR 'g.calibrate' function.
agcalibrate(
raw,
verbose = FALSE,
tz = "UTC",
imputeTimeGaps = FALSE,
spherecrit = 0.3,
sdcriter = 0.013,
minloadcrit = 168L,
debug = FALSE,
...
)
raw |
data frame of raw acceleration data obtained from |
verbose |
Print the progress of the calibration for the raw data, Default: FALSE |
tz |
the desired timezone, Default: |
imputeTimeGaps |
Imputes gaps in the raw acceleration data, Default: FALSE |
spherecrit |
The minimum required acceleration value (in g) on both sides of 0 g for each axis. Used to judge whether the sphere is sufficiently populated |
sdcriter |
Criteria to define non-wear time, defined as the estimated noise measured in the raw accelerometer data. |
minloadcrit |
The minimum number of hours the code needs to read for the autocalibration procedure to be effective (only sensitive to multitudes of 12 hrs, other values will be ceiled) |
debug |
print out diagnostic information for C++ code |
... |
Additional arguments to pass into the agread function |
This function uses a C++ implementation of the GGIR 'g.calibrate' function to return calibrated raw acceleration data.
Returns the calibrated raw acceleration data
force_tz
path <- system.file("extdata/example.gt3x", package = "agcounts")
data <- read.gt3x::read.gt3x(path, asDataFrame = TRUE)
data <- agcalibrate(raw = data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.