Home > other >  Excuse me: why r language the same code in a text data error?
Excuse me: why r language the same code in a text data error?

Time:09-26



In using R language to do quantile granger test, the code I just run a success, also just transfer a text file, other nothing changes, why is always an error?
Twice and I use the text file data types are the same, but the data is not the same as the length of time, the second data samples less than

CISI<- read. Table (" 1. TXT ")
CIN<- read. Table (" 2. TXT ")
# here is the log returns
# oil<- the diff (as matrix (log (oil))) # here is the log returns
W & lt; - data. Matrix (CISI)
Y & lt; - data. Matrix (CIN)
Tn=length (y) - 1

Yuv & lt; - y [1: tn]
Yur & lt; - y/2: (tn + 1)
H & lt; - dpill (yuv, yur, gridsize=tn)
The Error in the if (! Missing (bandwidth) & amp; & Bandwidth & lt;=0) stop (" 'bandwidth must be strictly positive ") :
Need to TRUE/FALSE value can not use the lack of value

Pray god solve, thank you thank you!!

CodePudding user response:

Does anyone can help me answer the

CodePudding user response:

  • Related