Used to calculate XMR data.
xmr(
df,
measure,
recalc = T,
reuse,
interval,
longrun,
shortrun,
testing,
prefer_longrun
)
The dataframe or tibble to calculate from. Data must be in a tidy format. At least one variable for time and one variable for measure.
The column containing the measure. Must be in numeric format.
Logical: if you'd like it to recalculate bounds. Defaults to True
Logical: Should points be re-used in calculations? Defaults to False
The interval you'd like to use to calculate the averages. Defaults to 5.
Used to determine rules for long run. First point is the 'n' of points used to recalculate with, and the second is to determine what qualifies as a long run. Default is c(5,8) which uses the first 5 points of a run of 8 to recalculate the bounds. If a single value is used, then that value is used twice i.e. c(6,6))
Used to determine rules for a short run. The first point is the minimum number of points within the set to qualify a shortrun, and the second is the length of a possible set. Default is c(3,4) which states that 3 of 4 points need to pass the test to be used in a calculation. If a single value is used, then that value is used twice i.e. c(3,3))
Logical to print test results
Logical if you want to first test for long-runs or for short-runs.