dsp_spec: Model Specification

View source: R/dsp_model.R

dsp_specR Documentation

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 class 'dsp_spec'
print(x, ...)

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()

Value

A list containing the model specification.

Examples

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


print(model_spec)


dsp documentation built on Aug. 21, 2025, 5:29 p.m.