R - multivariable regression?

bwik

New Member
#1
I keep getting coefficients that don't make any sense.

class([FORMULANAME]<-[Y]~[X1]+[X2]+[X3])
summary(lm([FORMULANAME],[DATASET]))

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 373158 303593 1.229 0.220
X1 -372960 303593 -1.228 0.220
X2 -372952 303596 -1.228 0.220
X3 -372989 303593 -1.229 0.220


These are totally wrong. What is wrong with my code? Thanks!
 
#2
If I remember correctly, the standard command for multiple regression in R is:

summary(lm(Y~X1+X2+X3, dataset))

I'm not familiar with "class". Hope this helps.