DLdata: Create an input data matrix for a Deep learning program that...

Description Usage Arguments Value Examples

Description

R command to setup the training and forecasting data for deep learning.

Usage

1
DLdata(x, forerate = 0.2, locY = 1, lag = 1)

Arguments

x

T by k data matrix: T data points in rows and k time series in columns.

forerate

Fraction of sample size to form the forecasting (or testing) sample.

locY

Locator for the dependent variable.

lag

Number of lags to be used to form predictors.

Value

A list containing:

Examples

1
2
x <- matrix(rnorm(7000), nrow=700, ncol=100)
m1 <- DLdata(x, forerate=c(200/nrow(x)), lag=6, locY=6)

SLBDD documentation built on March 27, 2021, 9:07 a.m.

Related to DLdata in SLBDD...