Skip to contents

Fit a model using the fitModel function.

Usage

fitModel(group, formula, data, ...)

Arguments

group

ID to fit

formula

Formula specifying the model formula

data

Data frame containing the data

...

Additional arguments to be passed to the glmmTMB::glmmTMB function

Value

Fitted model object or NULL if there was an error

Examples

fitModel("mtcars" , formula = mpg ~ cyl + disp, data = mtcars)
#> Formula:          mpg ~ cyl + disp
#> Data: data
#>       AIC       BIC    logLik  df.resid 
#> 167.14564 173.00858 -79.57282        28 
#> 
#> Number of obs: 32
#> 
#> Dispersion estimate for gaussian family (sigma^2): 8.46 
#> 
#> Fixed Effects:
#> 
#> Conditional model:
#> (Intercept)          cyl         disp  
#>    34.66099     -1.58728     -0.02058