Learn R Programming

GGIR (version 2.3-0)

g.analyse.perday: Function supports g.analyse. Not intended for direct use by user.

Description

Generates day specific analyses and fills corresponding output matrix, g.analyse.

Usage

g.analyse.perday(selectdaysfile, ndays, firstmidnighti, 
  time, nfeatures, window.summary.size, qwindow, midnightsi,
  metashort, averageday, ENMOi, LFENMOi, BFENi, ENi,
  HFENi, HFENplusi, MADi, ENMOai, doiglevels, nfulldays, lastmidnight, 
  ws3, ws2, qcheck, fname, idloc, BodyLocation, wdayname,
  tooshort, includedaycrit, winhr,L5M5window, M5L5res, 
  doquan, qlevels, quantiletype, doilevels, 
  ilevels, iglevels, domvpa,
  mvpathreshold, boutcriter, closedbout,
  bout.metric, mvpadur, mvpanames, wdaycode, IDd, ID, ID2,
  deviceSerialNumber, qM5L5, ExtFunColsi, myfun, desiredtz, MX.ig.min.dur=10)

Arguments

selectdaysfile
ndays

Number of days in file

firstmidnighti
time

timestamp column from metalong converted to character

nfeatures

estimate of number of variables that need to be stored in the output matrix

window.summary.size
qwindow
midnightsi
metashort
averageday

As produced by g.impute

ENMOi

column index of metahosrt where metric is stored

LFENMOi

column index of metahosrt where metric is stored

BFENi

column index of metahosrt where metric is stored

ENi

column index of metahosrt where metric is stored

HFENi

column index of metahosrt where metric is stored

HFENplusi

column index of metahosrt where metric is stored

MADi

column index of metahosrt where metric is stored

ENMOai

column index of metahosrt where metric is stored

doiglevels

Boolean to indicate whether iglevels should be calculated

nfulldays

Number of days between the first and last midnight in the recording

lastmidnight
ws3

Epoch size in seconds

ws2
qcheck

vector with zeros and ones for each epoch, respenting the quality check derived with g.impute

fname

RData filename produced by g.part1

idloc
BodyLocation

as produced by g.extractheadervars

wdayname

character with weekdayname

tooshort

0 (file not too short) or 1 (file too short)

includedaycrit
winhr
L5M5window
M5L5res
doquan

Boolean whether quantile analysis should be done

qlevels
quantiletype
doilevels

Boolean whether to generate ilevels, see g.analyse

ilevels
iglevels
domvpa

Boolean whether to do mvpa analysis

mvpathreshold
boutcriter
closedbout
bout.metric
mvpadur
mvpanames

Matrix with 6 columns and 1 row holding the names for the six mvpa variables

wdaycode

Equal to M$wday as produced by g.getmeta

IDd

As produced by g.extractheadervars

ID

As produced by g.extractheadervars

ID2

gnerated inside g.analyse either a copy of ID, or as character string before the first hyphen

deviceSerialNumber

As produced by g.extractheadervars

qM5L5
ExtFunColsi

column index of metahosrt where metric is stored

myfun

External function object to be applied to raw data, see g.getmeta.

desiredtz
MX.ig.min.dur

Value

daysummary

Summary per day for the file that was analysed

ds_names

Variable names in daysummary

windowsummary

Window summary, only used when selectdayfile is specified

ws_names

Variable names in windowsummary