CalcEn: Calculate Entropy of a cgms.df object for each selected group...

Description Usage Arguments Value Author(s) Examples

View source: R/CalcEn.R

Description

Calculate Entropy of a cgms.df object for each selected group to the mean glucose value of a cgms.df dataframe

Usage

1
2
3
4
5
6
7
CalcEn(
  entmeasure = "FastSampEn",
  ofint = "historic_glucose",
  df,
  varlist,
  r_thrsh = 0.2
)

Arguments

entmeasure

which entropy measure to use/Either "FastSampEn" "FastApEn". String

ofint

What variable is of interest. String

df

input cgms.df dataframe. Object

varlist

which groups to calculate entropy. Takes a list of strings

r_thrsh

what do you set the tolerance parameter r too. This input number multiplies by the sd of all glucose values.

outputdir

folder to save in. String

Value

dataframe with the entropy value for each group in varslist

Author(s)

Samuel Hamilton

Examples

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

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