response am getting: cointest<-ca.jo(dataz, K=5, type="eigen", ecdet = "const")
Error in dimnames(x) <- dn :
length of 'dimnames' [2] not equal to array extent
Your error indicates a problem with dataz
What is it ... perhaps a data.frame, or a matrix or something else?
what are its dimensions ?
what are the columnwise dimension names ? i.e.
ok, cbind constructs a bare matrix for you, lacking dimension names, i.e. no column names, i.e. no ICP not LCU etc.
The easy modern way to data manipulate in R involves the tidyverse which you can learn from this resource https://r4ds.had.co.nz/
but in base R you can do: