Learn R Programming

fabletools (version 0.5.0)

hypothesize.mdl_df: Run a hypothesis test from a mable

Description

This function will return the results of a hypothesis test for each model in the mable.

Usage

# S3 method for mdl_df
hypothesize(x, ...)

# S3 method for mdl_ts hypothesize(x, tests = list(), ...)

Arguments

x

A mable.

...

Arguments for model methods.

tests

a list of test functions to perform on the model

Examples

Run this code
if (FALSE) { # requireNamespace("fable", quietly = TRUE)
library(fable)
library(tsibbledata)

olympic_running %>%
  model(lm = TSLM(log(Time) ~ trend())) %>% 
  hypothesize()
}

Run the code above in your browser using DataLab