search for: sample_est

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

Did you mean: sample_test
2017 Aug 27
1
In Ops.factor(...) not meaningful for factors
...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.factor(diff(sample_bank[, 4]), sample_bank[, 4][-length(sample_bank[, : ?/??not meaningful for factors ( how to change type of c...