[R] Display of results

Dieter Menne dieter.menne at menne-biomed.de
Sun Jan 24 17:54:50 CET 2010



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 don’t 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.



More information about the R-help mailing list