ngme_ts_make_A: Make observation matrix for time series

View source: R/util.R

ngme_ts_make_AR Documentation

Make observation matrix for time series

Description

Make observation matrix for time series

Usage

ngme_ts_make_A(loc, replicate = NULL, range = c(min(loc), max(loc)))

Arguments

loc

integers (after sorting, no gaps > 1)

replicate

indicating replicate measure at same location

range

range for the mesh by default range=(min(loc), max(loc))

Value

A matrix (length(loc) * length(unique(loc)))

Examples

ngme_ts_make_A(c(1, 2, 2), replicate = c(1, 1, 2))
ngme_ts_make_A(c(1, 2, 2), range = c(1, 5))

ngme2 documentation built on May 20, 2026, 9:10 a.m.