Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
http://faculty.chicagobooth.edu/ruey.tsay/teaching/bs41202/sp2010/Rcommands_lec7.txt Page 1 of 2
6/18/12 6:19 PM
[1] 2125.665
>
**** You can run the backtest using neural networks ("backnnet")
> source("backnnet.R")
> m1=backnnet(ibm.x,y,840) # here 840 is the starting forecast origin.
*** You can use the program "hfrtn.R" to compute intraday log returns.
> source("hfrtn.R")
> m1=hfrtn(da,5) # here da: the trade-by-trade data
# 5 means 5-minute returns. (Interval is in minutes.)
http://faculty.chicagobooth.edu/ruey.tsay/teaching/bs41202/sp2010/Rcommands_lec7.txt Page 2 of 2