Here you will find daily news and tutorials about R, contributed by over 750 bloggers.
There are many ways to follow us - By e-mail:On Facebook: If you are an R blogger yourself you are invited to add your own R content feed to this site (Non-English R bloggers should add themselves- here)

Consider a (stationary) autoregressive process, say of order 2,
for some white noise with variance . Here is a code to generate such a process,
__ phi1=.5
__ phi2=-.4
__ sigma=1.5
__ set.seed(1)
__ n=240
__ WN=rnorm(n,sd=sigma)
__ ...