fitting-helpers: Trend-fitting helpers

Description Usage Value Functions See Also Examples

Description

Helper functions meant to be used in conjunction with mbte_fit.

Usage

1
2
3
4
5

Value

A fitting-quosure will be returned.

Functions

See Also

filtered_signals (dataset used in examples)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(filtered_signals)

# Use fitting helpers to fit signals
#
# NOTE: The unquoting operator (`!!`) is used, since fitting helpers return
# quosures.
fits1 <- mbte_fit(filtered_signals, lin = !!tr_linear())
fits1

# Equivalent without using fitting-helpers (columns for time and value of
# signal have to be provided explicitly)
fits2 <- mbte_fit(filtered_signals, lin = lm(value ~ t, .signal))
fits2

mkerschbaumer/mbte documentation built on May 5, 2019, 11:01 p.m.