glance.ml_analysis: Glance at an object

Description Usage Arguments Details Methods Examples

View source: R/glance.R

Description

#' Construct a single row summary "glance" of a model, fit, or other object

Usage

1
2
## S3 method for class 'ml_analysis'
glance(x, ...)

Arguments

x

model or other R object to convert to single-row data frame

...

other arguments passed to methods

Details

Returns a tibble specifying the number of parameters (df), log-likelihood (logLik), Akaike's Information Criterion (AIC) and whether or not the model converged.

Methods

\Sexpr[stage=render,results=rd]{generics:::methods_rd("glance")}

Examples

1
2
3
4
expr <- "sum(dnorm(len, mu, sigma, log = TRUE))"
start <- list(mu = 20, sigma = 8)
analysis <- ml_fit(expr, start, data = datasets::ToothGrowth)
glance(analysis)

poissonconsulting/ml documentation built on Feb. 13, 2021, 5:18 p.m.