aba_fit: Fit an aba model.

Description Usage Arguments Details Value Examples

View source: R/aba_fit.R

Description

Calling aba_fit will trigger the fitting of all statistical models which have been specified for the model. This will result in fits for each group - outcome - stat combination.

Usage

1
aba_fit(object, ...)

Arguments

object

aba model The aba model to be fitted.

...

additional parameters.

Details

Note that this function is identical to the generic fit() function which is also provided for compatability with the greater R ecosystem.

Value

abaModel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data <- adnimerge %>% dplyr::filter(VISCODE == 'bl')

model_spec <- aba_model() %>%
  set_data(data) %>%
  set_groups(everyone()) %>%
  set_outcomes(ConvertedToAlzheimers, CSF_ABETA_STATUS_bl) %>%
  set_predictors(
    PLASMA_ABETA_bl, PLASMA_PTAU181_bl, PLASMA_NFL_bl,
    c(PLASMA_ABETA_bl, PLASMA_PTAU181_bl, PLASMA_NFL_bl)
  ) %>%
  set_stats('glm')

model <- model_spec %>% aba_fit()

aba documentation built on Dec. 17, 2021, 1:06 a.m.