GNARdesign {GNAR} | R Documentation |
Function to create the GNAR design matrix
Description
Creates the design matrix necessary for fitting the GNAR model.
Usage
GNARdesign(vts = GNAR::fiveVTS, net = GNAR::fiveNet, alphaOrder = 2, betaOrder = c(1,1),
fact.var = NULL, globalalpha=TRUE, tvnets=NULL, netsstart=NULL)
Arguments
vts |
a matrix or ts object containing the multivariate time series to be modelled. The |
net |
the (first) network associated with the time series, containing a list with entries |
alphaOrder |
a non-negative integer specifying the maximum time-lag to model. |
betaOrder |
a vector of length |
fact.var |
a vector of factors indicating which nodes belong to each set with different parameters to be fitted. |
globalalpha |
a TRUE/FALSE value indivating whether to use global alpha parameters. |
tvnets |
a list of additional networks. Currently only NULL (the static network case) is supported. |
netsstart |
a vector of times corresponding to the first time points for each network of |
Value
GNARdesign |
returns a matrix containing |
Examples
#Design matrix to fit GNAR(2,[1,1]) to the fiveVTS data
GNARdesign()