Generates day specific analyses and fills corresponding output matrix, g.analyse.
Usage
g.analyse.perday(ndays, firstmidnighti, time, nfeatures,
midnightsi, metashort, averageday,
doiglevels, nfulldays,lastmidnight, ws3, ws2, qcheck,
fname, idloc, sensor.location, wdayname, tooshort, includedaycrit,
doquan, quantiletype, doilevels, domvpa,
mvpanames, wdaycode, ID,
deviceSerialNumber, ExtFunColsi, myfun, desiredtz = "",
params_247 = c(), params_phyact = c(),
...)Arguments
- ndays
Number of days in file
- firstmidnighti
see g.detecmidnight
- time
timestamp column from metalong converted to character
- nfeatures
estimate of number of variables that need to be stored in the output matrix
- midnightsi
see g.detecmidnight
- metashort
see g.impute
- averageday
As produced by g.impute
- doiglevels
Boolean to indicate whether iglevels should be calculated
- nfulldays
Number of days between the first and last midnight in the recording
- lastmidnight
see g.detecmidnight
- ws3
Epoch size in seconds
- ws2
see g.weardec
- 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
see g.analyse
- sensor.location
as produced by g.extractheadervars
- wdayname
character with weekdayname
- tooshort
0 (file not too short) or 1 (file too short)
- includedaycrit
see g.analyse
- doquan
Boolean whether quantile analysis should be done
- quantiletype
see g.analyse
- doilevels
Boolean whether to generate ilevels, see g.analyse
- domvpa
Boolean whether to do mvpa analysis
- 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
- ID
Person Identification number, this can be numeric or character
- deviceSerialNumber
As produced by g.extractheadervars
- ExtFunColsi
column index of metashort where metric is stored
- myfun
External function object to be applied to raw data, see g.getmeta.
- desiredtz
see g.part1
- params_247
See g.part2
- params_phyact
See g.part2
- ...
Any argument used in the previous version of g.analyse.perday, which will now be used to overrule the arguments specified with the parameter objects.