tidy.ml_analysis: Turn an object into a tidy tibble

Description Usage Arguments Details Value Methods Examples

View source: R/tidy.R

Description

Turn an object into a tidy tibble

Usage

1
2
## S3 method for class 'ml_analysis'
tidy(x, constant = FALSE, conf_level = 0.95, ...)

Arguments

x

An object to be converted into a tidy tibble::tibble().

constant

A logical scalar specifying whether to include constant terms.

conf_level

A number between 0 and 1 specifying the confidence level.

...

Additional arguments to tidying method.

Details

Returns a data.frame of the coefficient tables with their estimates, standard errors (sd), lower and upper confidence limits and surprisal values (svalue).

Value

A tibble::tibble() with information about model components.

Methods

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

Examples

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

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