tidyfun: Tidy Functional Data
A new framework for working with functional data in R Fabian Scheipl1 Jeff Goldsmith2
1: Dept. of Statistics, LMU Munich 2: Columbia University Mailman School of Public Health
tidyfun : Tidy Functional Data A new framework for working with - - PowerPoint PPT Presentation
tidyfun : Tidy Functional Data A new framework for working with functional data in R Fabian Scheipl 1 Jeff Goldsmith 2 1 : Dept. of Statistics, LMU Munich 2 : Columbia University Mailman School of Public Health Functional Data Painful to work with:
1: Dept. of Statistics, LMU Munich 2: Columbia University Mailman School of Public Health
2 / 61
3 / 61
4 / 61
5 / 61
6 / 61
7 / 61
0.4 0.5 0.6 0.7 0.00 0.25 0.50 0.75 1.00
male female
control MS
8 / 61
9 / 61
10 / 61
11 / 61
12 / 61
13 / 61
14 / 61
15 / 61
16 / 61
17 / 61
0.0 0.2 0.4 0.6 0.8 1.0 0.3 0.4 0.5 0.6 0.7 . x x xxxxxx x x xx xxxxx x xxx x xx xxxxxxxxxx x x xxxx x x x xxx x x xxxxx xx x xx x x xx x xx xx x xx xx xxx x xxxxxx x x x xx x x x xxx xxx xx
18 / 61
19 / 61
20 / 61
21 / 61
22 / 61
23 / 61
0.0 0.2 0.4 0.6 0.8 1.0 0.40 0.50 0.60 ex 0.0 0.2 0.4 0.6 0.8 1.0 0.40 0.50 0.60 ex %>% tfb(verbose = FALSE)
24 / 61
0.0 0.2 0.4 0.6 0.8 1.0 0.40 0.50 0.60 ex 0.0 0.2 0.4 0.6 0.8 1.0 0.40 0.50 0.60 ex %>% tfb(verbose = FALSE)
25 / 61
26 / 61
0.0 0.2 0.4 0.6 0.8 1.0 −5 5
raw
raw 0.0 0.2 0.4 0.6 0.8 1.0 −5 5
separate
tfb(raw, k = 55) 0.0 0.2 0.4 0.6 0.8 1.0 −5 5
global
tfb(raw, k = 55, global = TRUE)
27 / 61
28 / 61
0.0 0.2 0.4 0.6 0.8 1.0 0.40 0.50 0.60 ex 0.0 0.2 0.4 0.6 0.8 1.0 0.40 0.50 0.60 tfb_fpc(ex)
29 / 61
30 / 61
31 / 61
32 / 61
33 / 61
34 / 61
35 / 61
0.0 0.2 0.4 0.6 0.8 1.0 0.40 0.45 0.50 0.55 0.60 0.65 ex 0.0 0.2 0.4 0.6 0.8 1.0 −1 1 2 tf_smooth(ex) %>% tf_derive 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.1 0.2 0.3 0.4 0.5 tf_integrate(ex, definite = FALSE)
36 / 61
37 / 61
0.0 0.2 0.4 0.6 0.8 1.0 0.40 0.50 0.60 ex
38 / 61
39 / 61
0.0 0.2 0.4 0.6 0.8 1.0 0.40 0.50 0.60 ex 0.0 0.2 0.4 0.6 0.8 1.0 id E D C A B 40 / 61
41 / 61
male female 0.00 0.25 0.50 0.75 1.00 0.00 0.25 0.50 0.75 1.00 0.4 0.6 0.8
cca case
control MS
42 / 61
control MS 0.00 0.25 0.50 0.75 1.00 0.00 0.25 0.50 0.75 1.00
2009_2 2009_5 2009_6 2009_3 2001_3 2009_4 2002_2 2001_4 2001_2 2010_3 2007_4 2006_5 2008_1 2001_1 2006_4 2009_7 2006_2 2009_1 2004_3 2004_2 2007_5 2008_4 2004_4 2008_3 2006_3 2004_1 2001_5 2011_4 2008_2 2002_3 2006_1 2008_5 2007_3 2006_6 2006_7 2010_2 2008_6 2011_3 2002_1 2007_1 2007_6 2005_1 2005_4 2011_5 2011_1 2010_1 2005_2 2004_5 2005_3 2002_5 2007_2 2003_1 2010_4 2011_2 2003_2 2005_5 2002_4 2005_6 1005_1 1040_1 1013_1 1018_1 1003_1 1009_1 1020_1 1002_1 1001_1 1016_1 1004_1 1026_1 1010_1 1041_1 1006_1 1015_1 1011_1 1021_1 1024_1 1042_1 1031_1 1029_1 1023_1 1019_1 1028_1 1007_1 1014_1 1017_1 1012_1 1039_1 1035_1 1022_1 1037_1 1008_1 1030_1 1027_1 1025_1 1033_1 1036_1 1034_1 1032_1 1038_1
0.3 0.4 0.5 0.6 0.7 0.8
cca
43 / 61
44 / 61
40 50 60 70 80
lat
−125 −100 −75 −50
lon
40 50 60 70 80
lat
−125 −100 −75 −50
lon
45 / 61
46 / 61
47 / 61
48 / 61
49 / 61
50 / 61
51 / 61
52 / 61
53 / 61
54 / 61
55 / 61
56 / 61
57 / 61
58 / 61
1Caveat emptor. Currently a moving target, still a beta-version. 59 / 61
60 / 61
(I don’t even have references.) 61 / 61