first time here, so I hope that you will could help me!
I went to simulate stationary and positive AR(1) process such as $X[t]=a*X_{t-1}+ \sqrt{1-a^2}*e_t$, where $e\sim N(n,0,1)$ and $a=0.1$. In order to get positive value, can I just use the absolute value of X? Is an absolute value of an AR(1) still an AR(1)?
Here are my simulation steps :
n=100
e=rnorm(n)
a=0.1
X=rep(0,n)
X[1]<-rnorm(1,0,1)
for(t in 2:n){X[t]=a*X[t-1]+ sqrt(1-a^2)*e[t]}
X<-abs(X)