Hichem Ben Khedhiri wrote: > > I have been trying to carry out some variance ratio tests such as > Lo-MacKinlay test and Chow-Denning test. However, When I write the > function LM <- Lo.Mac(y,kvec) > or any other functions I dont get the results displayed. The only > sign I get is < >
It is important that you say that you are are using package vrtest, and how your calls look in detail. Does the example below work? data(exrates) y <- exrates$ca # read Canadian exchange rate nob <- length(y) r <- log(y[2:nob])-log(y[1:(nob-1)]) # log return calculation kvec <- c(2,5,10) Lo.Mac(r,kvec) # will display (or better "print") f = Lo.Mac(r,kvec) # this will not display anything, which is mostly the case for similar function f # this will display something print(f) # same result Dieter -- View this message in context: http://n4.nabble.com/Display-of-results-tp1288721p1288732.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.