error message :Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :NA/NaN/Inf dans 'x' .

Good morning everyone,
i wrote this code adf.test(log(z1)) but it dosen't work since an error message:
Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : NA/NaN/Inf dans 'x' .
What shall I do please ?

Do you know the values of x?
are they NA, NaN, or Inf?

hello,
they are numbers : NA

What policy would you like to use given that some of your data is absent?
Remove.. impute...?

the data that i used are imported from excel . and i did not remove them .
this is the code that i wrote
##testing the stationnarity of google trend ##
summary(gt_4cc)
x1 <- gt_4cc$BTC adjusted Gt
y1 <- gt_4cc$LTC adjusted Gt
z1 <- gt_4cc$ETH_C adjusted Gt
w1 <- gt_4cc$ETH adjusted Gt

##log##
adf.test(log(x1))
adf.test(log(y1))
adf.test(log(z1))
adf.test(log(w1))

the adf test dosen't work only with y1 and z1

thank you ! the problem is resolved .

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.