Learn R Programming

dsp (version 1.2.0)

dsp_spec: Model Specification

Description

Method for creating dsp specification object prior to fitting.

Method for printing basic information about the model specification

Usage

dsp_spec(family, model, ...)

# S3 method for dsp_spec print(x, ...)

Value

A list containing the model specification.

Arguments

family

A character string specifying the model family. Must be one of:

  • "gaussian": Gaussian family.

  • "negbinom": Negative binomial family.

model

A character string specifying the model type:

  • family = "gaussian":

    • "changepoint": Change point detection with Adaptive Bayesian Changepoint analysis and local Outlier (ABCO),

    • "smoothing": Bayesian smoothing,

    • "regression": Time-varying regression,

    • "bspline": Bayesian smoothing with B-spline for irregularly spaced or functional time-series.

  • family = "negbinom":

    • "smoothing": Bayesian smoothing.

...

currently not used

x

object of class dsp_spec from dsp_spec()

Examples

Run this code
model_spec <- dsp_spec(family = "gaussian",
                      model = "changepoint")


print(model_spec)

Run the code above in your browser using DataLab