I'm new to R and came over strictly to do a regression on a dataset with 28 variables and 60k entries (excel limits you to 16 variables). I watched some tutorials, read some guides, then wrote this script with the hope that I would easily get the results:
I've also tried
Am I doing something wrong with the csv import? What am I missing? Thanks in advance for any help you can give me.
mydata2 <- read.csv("C:/raw.csv",head=TRUE) summary(mydata2) #this will show the summary just fine attach(mydata2) model1 <- lm(formula = total.return ~ x1 + x2, data = mydata2) #hangs up forever summary(model1)
model1 <- lm(total.return ~ x1 + x2)