Description Usage Arguments Value
This function takes a log-likelihood function, and returns a modelling function, much like
stats:lm
or stats:glm
. This modelling function will find coefficients that maximize
the likelihood.
1 2 | modeller_from_loglik(loglik_fun, penalty_fun = function(...) return(0),
non_parameter_args = character())
|
loglik_fun |
A function whose first argument is the target variable, and whose subsequent
arguments are parameters of the distribution which gives the log-likelihood. (You can indicate
arguments that are *not* parameters with |
penalty_fun |
Optional. A function which, when given a dataframe with columns |
non_parameter_args |
A character-vector indicating arguments to |
A modelling function. See modeller_template
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.