genmissing: genmissing

Description Usage Arguments Value

View source: R/kalman_functions.R

Description

Written by Tim Cohn

Usage

1
genmissing(X1, XN, rho, N)

Arguments

X1

value before the gap

XN

value after the gap

rho

the lag one autocorrelation

N

the length of the sequence including X1 and XN. It is two more than the gap length

Value

genmissing numeric vector of length N, conditioned on the first value (X1) and last value (XN) with the specified lag one autocorrelation in the limit (where N is large) the values are normal with mean 0 and variance 1


EGRET documentation built on Jan. 25, 2022, 5:08 p.m.