harmonic_lm: Harmonic regression

Description Usage Arguments Value

Description

Harmonic regression

Usage

1
2
harmonic_lm(x, k = 3, time_ind = NULL, intercept = TRUE,
  return_design = TRUE)

Arguments

x

Input time series of length n.

k

The highest order of the factor inside sin/cos.

time_ind

A index vector of times, or NULL, in which case 1:n will be used.

intercept

Logical, whether to include an intercept.

return_design

Logical, whether to return the design matrix.

Value

A linear regession lm object.


yingboli/BayesMDL documentation built on May 29, 2019, 12:18 p.m.