[R] vector of zeros and ones

2008-11-19 Thread hassen62
Dear Rolf, thank you for reply, I am interested with non random numbers. To be more precise, I would like to obtain two vectors a and b with a=(1,1,1,..,1,1) and b=(0,0,,0,0). The length of a and b is 1. Thank you Écoutez gra

[R] Vector of ones and zeros

2008-11-19 Thread hassen62
Dear R people, what functions generate respectively vectors with each element is respectively zero and one. sorry for my credulous questions and many thanks in advance. Écoutez gratuitement le nouveau single de Noir Désir et découvrez d'au

[R] simulation of autoregressive process

2008-11-19 Thread hassen62
Dear R users, I would like to simulate, for 2 replications, an autoregressive process: y(t)=0.8*y(t-1)+e(t) where e(t) is i.i.d.(0,sigma*sigma), Thank you in advance Écoutez gratuitement le nouveau single de Noir Désir et découvrez d'au

[R] Problem with  urca package

2008-11-11 Thread hassen62
Dear R users, I have the joined txt file in the following direct directory C:// I have written the following lines: library(urca); PIBTUN<-read.table("C:/AF.txt", header=F); ur.df(PIBTUN,type='none',lags=1) but I have obtained the following message: Error in embed(z, lags) : 'x' is not a vector or

[R] problem with urca package

2008-11-11 Thread hassen62
Dear R users, I have the joined txt file in the following direct directory C:// I have written the following lines: library(urca); PIBTUN<-read.table("C:/AF.txt", header=F); ur.df(PIBTUN,type='none',lags=1) but I have obtained the following message: Error in embed(z, lags) : 'x' is not a vector or