tidy.drfit: Get Tidy Tibble from drfit Object.

View source: R/tidy.R

tidy.drfitR Documentation

Get Tidy Tibble from drfit Object.

Description

Get a tidy tibble of the coefficient estimates and confidence intervals from model fit.

Usage

## S3 method for class 'drfit'
tidy(x, conf_level = 0.95, estimate = median, random_effects = FALSE, ...)

Arguments

x

The object.

conf_level

A number between 0 and 1 of the confidence level.

estimate

A function to calculate the estimate.

random_effects

A flag indicating whether to include random effect terms.

...

Unused parameters.

Value

A tibble of the tidy coefficient summary.

See Also

coef.drfit()

Other generics: augment.drfit(), glance.drfit()

Examples

fit <- dr_fit(detrange::range_obs)
tidy(fit)

Freshwater-Fish-Ecology-Laboratory/detrange documentation built on Oct. 30, 2024, 1:10 p.m.