This worked! Thanks!
----- Original Message ----- From: "Chuck Cleland" <[EMAIL PROTECTED]> To: "David Kaplan" <[EMAIL PROTECTED]> Cc: <[email protected]> Sent: Thursday, May 11, 2006 1:58 PM Subject: Re: [R] Newbie question about read.table > David Kaplan wrote: >> Here is what I'm doing >> >> birthweight <- read.table("c:/bw.dat", header = T) >>> summary(glm(low~age,binomial)) >> Error in eval(expr, envir, enclos) : object "low" not found >>> > > Try this: > > birthweight <- read.table("c:/bw.dat", header = TRUE) > summary(glm(low ~ age, family=binomial, data=birthweight)) > >> Thanks all! >> >> >> ----- Original Message ----- From: "Chuck Cleland" >> <[EMAIL PROTECTED]> >> To: "David Kaplan" <[EMAIL PROTECTED]> >> Cc: <[email protected]> >> Sent: Thursday, May 11, 2006 1:53 PM >> Subject: Re: [R] Newbie question about read.table >> >> >>> David Kaplan wrote: >>>> Hi >>>> >>>> When I use the read.table function with header = T, I notice that it >>>> gives me the variable names along the top as I expect. But, when I >>>> then attempt an analysis, e.g. regression, it doesn't recognize the >>>> variable names. Am I missing a step. Thank you >>>> >>>> David >>> >>> Are you assigning the result of read.table() to a data frame. And >>> then do you refer to that data frame in your call to lm()? If that does >>> not solve the problem, you may want to show us the code you are using. >>> >>> Chuck >>> >>>> [[alternative HTML version deleted]] >>>> >>>> ______________________________________________ >>>> [email protected] mailing list >>>> https://stat.ethz.ch/mailman/listinfo/r-help >>>> PLEASE do read the posting guide! >>>> http://www.R-project.org/posting-guide.html >>>> >>> >>> -- >>> Chuck Cleland, Ph.D. >>> NDRI, Inc. >>> 71 West 23rd Street, 8th floor >>> New York, NY 10010 >>> tel: (212) 845-4495 (Tu, Th) >>> tel: (732) 512-0171 (M, W, F) >>> fax: (917) 438-0894 >>> >> >> > > -- > Chuck Cleland, Ph.D. > NDRI, Inc. > 71 West 23rd Street, 8th floor > New York, NY 10010 > tel: (212) 845-4495 (Tu, Th) > tel: (732) 512-0171 (M, W, F) > fax: (917) 438-0894 > ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
