Learn R Programming

simts (version 0.2.2)

intgr_vec: Discrete Intergral: Inverse Difference

Description

Takes the inverse difference (e.g. goes from diff() result back to previous vector)

Usage

intgr_vec(x, xi, lag)

diff_inv_values(x, lag, d, xi)

diff_inv(x, lag, d)

Arguments

x

A vec containing the data

xi

A vec with length \(lag*d\) that provides initial values for the integration.

lag

An unsigned int indicating the lag between observations.

d

An unsigned int which gives the number of "differences" to invert.