[R] Extracting dataset from lm output

Roberts, Kyle kyler at mail.smu.edu
Fri Aug 15 21:48:40 CEST 2008


Dear All,

I want to extract the original dataset from a lm output. I know that I
can get most of it from

model.matrix(lm.out)

but I need the dependent variable to be in the first column. Any ideas?

Thanks,
Kyle Roberts



More information about the R-help mailing list