Learn R Programming

extRC (version 1.2)

dfm: First difference matrix

Description

It creates a matrix of first differences of order k.

Usage

dfm(k)

Arguments

k

size of the matrix

Value

D

first difference matrix

Examples

Run this code
# NOT RUN {
D = dfm(5)
x = runif(5)
(D%*%x)
# }

Run the code above in your browser using DataLab