Description Usage Arguments Value Examples
Prints and returns ANOVA test on all variables and interactions for each measure. Can pass in a dataset from create_dataset, or function calls create_dataset itself.
1 |
dataset |
dataset from create_dataset that contains all variables and measures of interest |
person |
an instantiated Person object |
variables |
list of variables in person of interest, with structure list(source1 = c(var1, var2), source2 = c(var3, var4)) where source is a source of data as defined in a Person object, and var1 and var2 are variables from source1, while var3 and var4 are variables from source2 |
measures |
list of measures in person of interest, with structure list(source1 = c(var1, var2), source2 = c(var3, var4)) where source is a source of data as defined in a Person object, and var1 and var2 are variables from source1, while var3 and var4 are variables from source2 |
time_var |
the time variable that variables and measures are observed in (time, date, or datetime) - only needed if dataset is not passed in |
list of ANOVAs for each measure
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(EX)
dataset <- create_dataset(person = EX,
all_variables = list("util" = c("day_of_week"),
"fitbit_daily" = c("sleepDuration",
"steps",
"restingHeartRate")),
time_var = c("date"))
all_anovas <- l_anova(dataset, person = EX, variables = list("util" = c("day_of_week"),
"fitbit_daily" = c("sleepDuration",
"steps")),
measures = list("fitbit_daily" = c("restingHeartRate")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.