get_mean_sd_hour {mMARCH.AC} | R Documentation |
get subject average of time variables
Description
A function for calcualting the average timing of variables (in this case the M10 and L5). Find the average timing mu that min sum min[ (tind_i - mu)^2, (1440 + mu - tind_i )^2 ]
Usage
get_mean_sd_hour(tind, unit2minute = 60, out = c("mean", "sd"))
Arguments
tind |
|
unit2minute |
|
out |
|
Value
mean and sd of the input timing
Examples
x=c(1,1,1,23,23,23)
get_mean_sd_hour(tind=x, unit2minute=60)
x=12+c(1,1,1,23,23,23)
get_mean_sd_hour(tind=x, unit2minute=60)
x=c(1:100/5, 20+4:50/200)
get_mean_sd_hour(tind=x, unit2minute=60)
[Package mMARCH.AC version 2.9.2.0 Index]