CalcEnSlide: Calculates Sliding Entropy for groups of interest in...

Description Usage Arguments Value Author(s) Examples

View source: R/CalcEnSlide.R

Description

Calculates Sliding Entropy for groups of interest in dataframes

Usage

1
2
3
4
5
6
7
8
9
CalcEnSlide(
  df,
  entmeasure = "FastSampEn",
  ofint = "historic_glucose",
  varlist,
  r_thrsh = 0.2,
  size = 200,
  step = 1
)

Arguments

df

input cgms.df dataframe

entmeasure

chosen entropy measure. Either FastSampEn or FastApEn. String

ofint

variable of interest to calculate entropy on from the datagrame. String

varlist

Which groups to separate dataframe by

r_thrsh

what is the tolerance value r. This is multiplied by the sd of the whole ofint column.

size

the window size

step

step length

Value

dataframe with the entropy value for each group in varslist

Author(s)

Samuel Hamilton

Examples

1
CalcEnSlide(df = cgms.df,varlist = c("Group"))

hamsamilton/cgms.analysis documentation built on March 29, 2020, 12:57 a.m.