I am absolutely new to R and I am aware of only a few basic command lines. I was running a robust regression in R, using the following command line library (MASS) rfdmodel1 <- rlm (TotalEmployment_2004 ~ MISSISSIPPI + LOUISIANA + TotalEmployment_2000 + PCWhitePop_2004 + UnemploymentRate_2004 + PCUrbanPop2000 + PCPeopleWithACollegeDegree_2000 + PCPopulation.of.or.over.65.years.of.age_2004) summary (rfdmodel1) But, I keep getting this error: Error in eval(expr, envir, enclos) : object 'TotalEmployment_2004' not found> summary (rfdmodel1)Error in summary(rfdmodel1) : object 'rfdmodel1' not found I have tried using a different machine and that did not work either. Any suggestions? Uttara -- View this message in context: http://r.789695.n4.nabble.com/Error-in-eval-expr-envir-enclos-tp2547917p2547917.html Sent from the R help mailing list archive at Nabble.com.
I don't see a data frame name in the rlm call... Dennis On Mon, Sep 20, 2010 at 7:08 PM, uttara_n <nilawar.uttara@gmail.com> wrote:> > I am absolutely new to R and I am aware of only a few basic command lines. > I > was running a robust regression in R, using the following command line > > library (MASS) > rfdmodel1 <- rlm (TotalEmployment_2004 ~ MISSISSIPPI + LOUISIANA + > TotalEmployment_2000 + PCWhitePop_2004 + UnemploymentRate_2004 + > PCUrbanPop2000 + PCPeopleWithACollegeDegree_2000 + > PCPopulation.of.or.over.65.years.of.age_2004) > summary (rfdmodel1) > > But, I keep getting this error: > > Error in eval(expr, envir, enclos) : > object 'TotalEmployment_2004' not found > > summary (rfdmodel1) > Error in summary(rfdmodel1) : object 'rfdmodel1' not found > > I have tried using a different machine and that did not work either. Any > suggestions? > > Uttara > -- > View this message in context: > http://r.789695.n4.nabble.com/Error-in-eval-expr-envir-enclos-tp2547917p2547917.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Oh, I am sorry I did not include the data.frame command line since it loaded the data correctly without any errors. The following is the command line I used to load the data: data <- read.table ("C:/MUP/Internship/Distance_Statistics/Excel_data/ForModelling_Rev_2.csv" , sep= ",", header = TRUE) attach (data) summary (data) -- View this message in context: http://r.789695.n4.nabble.com/Error-in-eval-expr-envir-enclos-tp2547917p2548072.html Sent from the R help mailing list archive at Nabble.com.
I used the following command line: Regression <- read.table ("C:/MUP/Internship/Distance_Statistics/Excel_data/Robust_Regression/ForModelling_Rev_Rob.csv" , sep= ",", header = TRUE) attach (Regression) summary (Regression) library (MASS) rlm(TotalEmployment_2004 ~ MISSISSIPPI + LOUISIANA + TotalEmployment_2000 + PCWhitePop_2004 + UnemploymentRate_2004 + PCUrbanPop2000 + PCPeopleWithACollegeDegree_2000 + PCPopulation.of.or.over.65.years.of.age_2004, data = rfdmodel1) But, it is still giving me the same error. Uttara -- View this message in context: http://r.789695.n4.nabble.com/Error-in-eval-expr-envir-enclos-tp2547917p2548804.html Sent from the R help mailing list archive at Nabble.com.