tolearn

06-14-2008, 12:48 AM

cs1<-corAR1(0.2)

ran<-rnorm(20,0,cs1)

an AR(1) model with coefficient 0.2, and random 20 normal samples with mean 0 and variance-corvariance structure as cs1, then how to use a function to obtain the 20 dimensional variance-corvariance matrix of ran?:confused:

ran<-rnorm(20,0,cs1)

an AR(1) model with coefficient 0.2, and random 20 normal samples with mean 0 and variance-corvariance structure as cs1, then how to use a function to obtain the 20 dimensional variance-corvariance matrix of ran?:confused: