Learn R Programming

tidychangepoint (version 1.0.1)

whomademe: Recover the function that created a model

Description

Recover the function that created a model

Usage

whomademe(x, ...)

Value

A function

Arguments

x

A character giving the name of a model. To be passed to model_name().

...

currently ignored

Details

Model objects (inheriting from mod_cpt) know the name of the function that created them. whomademe() returns that function.

See Also

Other model-fitting: fit_arima(), fit_lmshift(), fit_meanshift(), fit_meanvar(), fit_nhpp(), model_args(), model_name(), new_fun_cpt()

Examples

Run this code
# Get the function that made a model
f <- whomademe(fit_meanshift_norm(CET, tau = 42))
str(f)

Run the code above in your browser using DataLab