fit.abaModel: Fit an aba model.

View source: R/aba_fit.R

fit.abaModelR Documentation

Fit an aba model.

Description

Calling 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

## S3 method for class 'abaModel'
fit(object, ...)

Arguments

object

aba model The aba model to be fitted.

...

additional parameters.

Details

Note that this function is identical to the generic aba_fit() function.

Value

abaModel

Examples


data <- adnimerge %>% dplyr::filter(VISCODE == 'bl')

model_spec <- data %>% aba_model() %>%
  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()


ncullen93/abaR documentation built on Feb. 8, 2024, 12:01 p.m.