Where, A is a matrix with 64 rows and 15 columns. ![]() ![]() I also used the following code in place of the for loop: lapply(split(A,col(A)), function(ts) acf(ts, lag.max=1)) I tried assigning a variable name to this loop but after the run, it only returned as NULL. Using this loop, I was able to obtain the autocorrelation plots but there were no mathematical values generated for the autocorrelation coefficient. ![]() I had imported my data from excel, containing 64 rows and 15 columns, into R in order to calculate the autocorrelation using the acf().
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |