Search code examples
rlinear-regression

Why do I get the estimates in the scientific form ? in R


I have a dataset and variables are in character class so I fix them and turn them to numeric and make a regression model but the estimates are in the form of :

(Intercept) 1.213e+04 1.197e+03

Why do I get estimates in this form? How can I solve it?

fix(Table5_5)
par(mfrow=c(2,2))

MODEL2 = lm(Table5_5$SALARY ~ Table5_5$SPENDING)

summary(MODEL2)

Solution

  • I cannot reproduce your data but you could try to run options(scipen = 999) at the start of your sessiom. This should give you the result in decimals for the rest of your R session.