0

R seems to be treating all of my values in a column as seperate coefficients instead of seeing them as numbers to analyze. When using a regression, it hence conducts a multiple linear regression instead of a single linear regression. How can I overcome this problem? :

Summary of Regression

Data set:

Dataset

To import the csv file, I've used the following code:

data <- read.csv("./path.csv", header = TRUE, sep = ";",stringsAsFactors = FALSE)
Rui Barradas
  • 70,273
  • 8
  • 34
  • 66
YEYQDFQ
  • 1
  • 1
  • 3
    your variable will be character or factor rather than numeric. Before modelling make sure of your data tyoes by inspecting your data with `str(data3)` – user20650 Nov 10 '22 at 11:52
  • See [this post](https://stackoverflow.com/a/5188502/8245406). – Rui Barradas Nov 10 '22 at 11:53
  • 1
    @user20650's comment is supported by the *left* alignment of the entries in your screenshot. – Limey Nov 10 '22 at 11:53

0 Answers0