# NOT RUN {
# create default stat object by specifying only a string
model <- aba_model() %>%
set_stats('glm')
# pass an actual stat object. This is useful to specify extra params
# such as `std.beta` and `complete.cases` which is common to all stats.
model <- aba_model() %>%
set_stats(
stat_glm(std.beta = TRUE, complete.cases = FALSE)
)
# some stats such as lme require parameters
# those variables are expected to exist in the eventual data
model <- aba_model() %>%
set_stats(
stat_lme(id = 'RID', time = 'YEARS_bl')
)
# you can see these extra stat params when you print the model
print(model)
# }
Run the code above in your browser using DataLab