View source: R/find_algorithm.R
find_algorithm | R Documentation |
Returns information on the sampling or estimation algorithm as well as optimization functions, or for Bayesian model information on chains, iterations and warmup-samples.
find_algorithm(x, ...)
x |
A fitted model. |
... |
Currently not used. |
A list with elements depending on the model.
For frequentist models:
algorithm
, for instance "OLS"
or "ML"
optimizer
, name of optimizing function, only applies to
specific models (like gam
)
For frequentist mixed models:
algorithm
, for instance "REML"
or "ML"
optimizer
, name of optimizing function
For Bayesian models:
algorithm
, the algorithm
chains
, number of chains
iterations
, number of iterations per chain
warmup
, number of warmups per chain
data(sleepstudy, package = "lme4")
m <- lme4::lmer(Reaction ~ Days + (1 | Subject), data = sleepstudy)
find_algorithm(m)
data(sleepstudy, package = "lme4")
m <- suppressWarnings(rstanarm::stan_lmer(
Reaction ~ Days + (1 | Subject),
data = sleepstudy,
refresh = 0
))
find_algorithm(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.