search for: return_bank

Displaying 1 result from an estimated 1 matches for "return_bank".

2017 Aug 27
1
In Ops.factor(...) not meaningful for factors
...ening! I don't know R, but I have to do this work for my diploma. So I'm sorry for the strange message below. Help me anybody decides this issues, please. a part of the code is: for (i in 1:133) { r_squared <- vector() sample_bank <- mydata[((i-1)*311+1):(i*311),] #return for bank return_bank <- diff(sample_bank[,4])/sample_bank[,4][-length(sample_bank[,4])] I've got these errors: model <- lm(sample_est[,6] ~ sample_est[,7], na.action=na.omit) Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : 0 (non-NA) cases In addition: Warning message : In Ops.facto...