I'm try to do a OLS regression on my dataset but im getting an Error i see the first time. Im not sure how i can solve it. I tried already some workarounds from other boards but nothing worked so far.
Some more input
str(X.mat.train)
chr [1:80000, 1:42] "36" "60" "60" "36" "60" "60" "36" "36" "60" "36" "60" "36" "36" "36" "36" "60" "36" "36" "36" "36" "36" "36" "60" ...
- attr(*, "dimnames")=List of 2
..$ : chr [1:80000] "855655" "712944" "629936" "264278" ...
..$ : chr [1:42] "term" "installment" "grade" "emp_length" ...
str(y.train)
num [1:80000] 12.99 19.2 11.99 9.67 15.61 ..
there are no NA is this dataset and the data of X.ma.train has 80.000 rows but im still confused were the number 3360000 is coming from.
mod.lm.summary <- summary(lm(y.train~X.mat.train-1))
Error in `[[<-.data.frame`(`*tmp*`, i, value = c(35809L, 35828L, 35828L, :
replacement has 3360000 rows data has 80000