Generate artifical sales data series in R with arima model & add noise -


i'm extremely new r , pretty new time series analysis. have been looking answer online can't seem find it.

i need generate artificial time series represent sales data of product x. need make few variations. independent series (i can excel), , series ar(1) rho= 0.8, , added noise level.

for ar(1), know can use

ar.sim<-arima.sim(model=list(ar=c(.8)), n=52) ar.sim 

this generates 52 data points along lines of

 [1] -2.080871400 -1.327156528 -0.672868162  0.521280151 -0.200243250  [6]  0.808095642  2.208014641  4.266957623  1.682261358  0.796715498 

question 1: how make start level, e.g. 300 products sold? thought n.start seems else.. add 300 everytime? seems wrong.. question 2: how can add noise series?


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -