set_data | R Documentation |
The raw data will be used to fit all of the statistical models. This data will be processed according to what is specified in the aba stat objects.
set_data(model, data)
model |
an aba model. The model on which data will be set. |
data |
dataframe or tibble. The data to set. |
An aba model with data set.
data <- adnimerge %>% dplyr::filter(VISCODE == 'bl')
# set data in the traditional way
model <- aba_model() %>% set_data(data)
# pipe data into an `aba_model()` call to get access to auto-completion on
# variables from RStudio upon further pipes. This is useful for setting
# other specs because it will reduce the chance of typos on variable names.
model <- data %>% aba_model()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.