Tvol: Total Volumen of Activity for Whole Dataset

Description Usage Arguments Details Value Examples

View source: R/Tvol.R

Description

Calculate total volume of activity level, which includes TLAC (total log transfored activity counts), TAC (total activity counts).

Usage

1
Tvol(count.data, weartime, logtransform = FALSE)

Arguments

count.data

data.frame of dimension n*1442 containing the 1440 minute activity data for all n subject days. The first two columns have to be ID and Day.

weartime

data.frame with dimension of count.data. The first two columns have to be ID and Day.

logtransform

if TRUE, then calcualte TLAC. Or calculate TAC.

Details

log transormation is defined as log(x+1).

Value

A dataframe with some of the following columns

ID

identifier of the person

Day

indicator of which day of activity it is, can be a numeric vector of sequence 1,2,... or a string of date

TAC

total activity count

TLAC

total log activity count

Examples

1
2
3
4
data(example_activity_data)
count = example_activity_data$count
wear = example_activity_data$wear
tac = Tvol(count.data = count,weartime = wear,logtransform = FALSE)

junruidi/actigraphy documentation built on Sept. 25, 2019, 7:48 a.m.