Quick and simple (to ask). I'm using the latest version of R an RStudio on my Mac.
The first lm()
works, the second doesn't. The documentation for both functions is kind of spread out, so I can't trace a problem -- especially since R does not give me an error message. It quietly does whatever it's doing and the second fit isn't created.
theURL <- "http://lib.stat.cmu.edu/datasets/Andrews/T30.1"
theNames <- c("Table", "Number", "Row", "Experiment", "Temperature", "Concentration", "Time", "Unchanged", "Converted", "Unwanted")
Reaction <- read.table(theURL, header = F , col.names = theNames)
Reaction <- Reaction[-c(1:4)]
fitWorking <-lm(Converted~Temperature, data=Reaction)
with(Reaction,
fitBroken <- lm(Converted ~ Temperature)
)
Created on 2019-02-28 by the reprex package (v0.2.1)
For completeness, this is data table 30.1 from Andrews & Herzberg Data book.