embed_fits: A function to fit various types of models based on apriori...

Description Usage Arguments

View source: R/embed.R

Description

A function to fit various types of models based on apriori specifications. This function should be applied within the context of the mutate() function in the dplyr package.

Usage

1
2
embed_fits(object, engine, keep_models = FALSE, fill_models = TRUE,
  ...)

Arguments

object

an object of class 'apriori'

engine

a character value specifying the model type. Valid options are

  • 'lm' for linear models

  • 'glm' for generalized linear models

  • 'gee' for generalized linear models fitted with generalized estimating equations

  • 'cph' for Cox proportional hazards models.

keep_models

(T/F) if TRUE, the model output will be saved from its native R function. If FALSE, only point estimates and covariance estimates will be returned.

...

Arguments to be passed into the specified engine function.

family

(character or function) a description of the error distribution and link function to be used in the model. Valid options for character values are 'binomial' and 'poisson' for binary and count models, respectively. For regression models, family can be left unspecified but engine should be set to 'lm'.


bcjaeger/rpriori documentation built on Nov. 4, 2019, 6:52 a.m.