new_model: Create a new model object of S3 class "manyregs_model".

Description Usage Arguments Details Value

Description

Create a new model object of S3 class "manyregs_model".

Usage

1
2
new_model(outcome, exposure, adjustment, f, fname, template = NULL,
  extra_slots = NULL)

Arguments

outcome

Name of outcome variable

exposure

Name of exposure variable

adjustment

Character vector with names of adjustment variables

f

Function for fitting the model

fname

Name of fitting function

template

Model to use as template

extra_slots

List of additional slots for model (see Details)

Details

The "extra_slots" argument is a list of key-value pairs. It adds flexibility by allowing slots other than "outcome", "exposure", "adjustment", "f", and "fname" to be included in the model.

Value

Model object of S3 class "manyregs_model".


cbaumbach/manyregs documentation built on May 13, 2019, 1:48 p.m.