Turn an object into a tidy tibble

# S3 method for 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.

Value

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

Details

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

Methods

See the following help topics for more details about individual methods:ml

  • tidy.ml_analysis: ml_analysis

nlist

Examples

expr <- "sum(dnorm(len, mu, sigma, log = TRUE))" start <- list(mu = 20, sigma = 8) data <- datasets::ToothGrowth fitted <- ml_fit(expr, start, data = data)
#> Error in UseMethod("pars"): no applicable method for 'pars' applied to an object of class "nlist"
tidy(fitted)
#> Error in UseMethod("tidy"): no applicable method for 'tidy' applied to an object of class "function"