obR: Generate the sample Y_t of NAR(1) model.

Description Usage Arguments Value Examples

View source: R/StatCompR.R

Description

Generate the sample Y_t of NAR(1) model.

Usage

1
obR(A, beta, T)

Arguments

A

network structure matrix A

beta

the 2 dimensional vector of coefficient (numeric)

T

the sample size (integer)

Value

the sample list of (X,Y) (numeric)

Examples

1
2
3
4
5
6
7
8
## Not run: 
T<- 1000
K<- 5
N<- 100
beta<- c(0.2,-0.4)
A<- StatComp21024::netA(K,N)
obR(A,beta,T)
## End(Not run)

clulu1014/StatComp21024 documentation built on Dec. 23, 2021, 11:14 p.m.