max_fluc: Determine pair of maximum fluctuation difference

View source: R/emd.R

max_flucR Documentation

Determine pair of maximum fluctuation difference

Description

Determine the pair of maximum fluctuation difference on time series data distribution from a preprocessed list or Earth Mover's Distance square matrix.

Usage

max_fluc(input, parameter, maxIter, normalize)

Arguments

input

Either a list storing time series data or EMD martrix (also see functions: patient_list, emd_matrix)

parameter

Parameter of interest from time series data list

maxIter

Maximum of iterations to apply for calculation of Earth Mover's Distannce (also see function: emd_matrix)

normalize

Indicates if parameters delivered needs to be normalized or not (TRUE by default)

Value

Console output with Patient_ID pair, corresponding Earth Mover's Distance and visualized boxplot of both time series data distributions

Examples

list <- patient_list(
"https://raw.githubusercontent.com/MrMaximumMax/FBCanalysis/master/demo/phys/data.csv",
GitHub = TRUE)
#Sampling frequency is supposed to be daily
max_fluc(list, "PEF")


MrMaximumMax/FBCanalysis documentation built on June 23, 2022, 8:21 p.m.