tsd: Time series for forecasting examples

tsdR Documentation

Time series for forecasting examples

Description

A synthetic univariate time series used throughout the introductory tspredit examples.

  • x: regular time index from 0 to 10.

  • y: smooth sine-based signal used as the forecasting target.

Usage

data(tsd)

Format

A data frame with 100 rows and 2 columns:

x

Numeric time index.

y

Numeric response series used in forecasting demonstrations.

Details

tsd is the smallest dataset distributed with tspredit and acts as the didactic entry point for the package. It is intentionally simple so the reader can focus on the mechanics of sliding windows, train/test splitting, preprocessing, and prediction workflows before moving to larger benchmark collections documented in R/tspredbench.R, including EUNITE.Loads, EUNITE.Reg, EUNITE.Temp, ipeadata.d, ipeadata.m, NN3, NN5, CATS, SantaFe.A, SantaFe.D, bioenergy, climate, emissions, fertilizers, gdp, m1, m3, m4, pesticides, and stocks.

Source

Generated for package documentation and examples.

Examples

# Load dataset and inspect the first rows
data(tsd)
head(tsd)

# Plot the target series used in the examples
ts.plot(tsd$y, ylab = "Value", xlab = "Index", main = "Synthetic example series")

tspredit documentation built on May 15, 2026, 1:07 a.m.