Hi I have a problem with linear regression. This is my codes: acc1<- lm(data$acc ~ dummy + data$Reqloanamount + data$Code + data$Code.1 + data$EmpNetMonthlyPay + data$Customer_Age + data$RTI) summary(acc1) These attributes are all numerical except the "acc"(factors), so how can I fix the problem R showed me? can anyone please help me out? Many thanks! But the R shows: Residuals:Error in quantile.default(resid) : factors are not allowedIn addition: Warning message:In Ops.factor(r, 2) : ^ not meaningful for factors [[alternative HTML version deleted]]