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.
1 2 | embed_fits(object, engine, keep_models = FALSE, fill_models = TRUE,
...)
|
object |
an object of class 'apriori' |
engine |
a character value specifying the model type. Valid options are
|
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'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.