simu2.data.generating: STARX: spatiotemporal autoregressive model with exogenous...

Description Usage Arguments Value

View source: R/simu2.data.generating.R

Description

This function generates simulation example for STAR with partially linear varying coefficient model.

Usage

1
simu2.data.generating(nS, nT, sigma, alpha, k = 10, boundary)

Arguments

nS

Number of points randomly generated from spatial domain.

nT

Number of times that spatial points are observed across the time.

sigma

Noise level.

alpha

α in STAR model.

k

The weight matrix is generated based on k-nearest neighbor. The default value in this simulation example is 10.

boundary

The boundary of the spatial domain.

Value

A list of five containing the data to fit model.

Y

response variable.

Z

exogenous variables with constant linear coefficients

X

exogenous variables with varying linear coefficients.

location

A nS * nT by three matrix with locations of data points.

W

weight matrix in STAR.


funstatpackages/STARX documentation built on Jan. 30, 2021, 11:47 p.m.