I am calculating stock price series for 1 year and I used the following formula:
t<- file.choose ()
normalTest(n_pr, method= c("jb"))
mean_pr <- mean(n_pr)
sd_pr <- sd(n_pr)
sim1 <- rnorm (100000, mean = mean_pr, sd = sd_pr)
however now i need to calculate on a quarterly basis and it is quite difficult for me. Can someone help me break down the "pr" please?
And if I want to calculate in a data range from the first number to the 100th "pr" number, what should I do? thank