soj_g: Soj-g function from Marcotte et al 2021

View source: R/soj_g.R

soj_gR Documentation

Soj-g function from Marcotte et al 2021

Description

Soj-g function from Marcotte et al 2021

Usage

soj_g(
  data = NA,
  export_format = "session",
  freq = 80,
  step1_sd_threshold = 0.00375,
  step2_nest_length = 5,
  step3_nest_length = 60,
  step3_orig_soj_length_min = 180
)

Arguments

data

A dataframe with raw wrist accelerometer data with column names Timestamp, AxisX, AxisY, AxisZ, VM

freq

Sampling frequency of raw accelerometer data. 80 Hz by default

step1_sd_threshold

Threshold used to classify likely inactive periods

step2_nest_length

Window length for classifying inactive vs active using random forest model

step3_nest_length

Window length for partitioning excessively long sojourns as determined by step3_orig_soj_length_min

step3_orig_soj_length_min

Maximum sojourn window duration allowed until partitioning into nested sojourns


robmarcotte/MOCAfunctions documentation built on March 23, 2024, 12:33 p.m.