modeller_template: A "template" for a modelling function

Description Usage Arguments Value

Description

This function will not work by itself. Instead, modeller_from_loglik provides a modified version of it.

Usage

1
2
3
4
modeller_template(formulas, data, standardize_x = FALSE,
  na.action = na.warn, loglik_fun_args = list(),
  penalty_fun_args = list(), optim_args = list(method = "BFGS", control =
  list(trace = as.integer(interactive()), maxit = 250)), contrasts = NULL)

Arguments

formulas

A list of formulas. The LHS should contain the dependent variable wrapped around a parameter– e.g., mu(y) ~ x.

data

A data.frame.

standardize_x

Should data be standardized before passing to optimizer? Can help with convergence. Affects interpretation of coefficients.

na.action

Action when records in data are NA

loglik_fun_args

Further arguments to pass to the loglik function (from modeller_from_loglik).

penalty_fun_args

Further arguments to pass to the penalty function (from modeller_from_loglik).

optim_args

A list of arguments to pass to stats:optim.

Value

An object of class 'keanu_model', with print and predict methods.


strongio/keanu documentation built on May 8, 2019, 11:16 p.m.