Hello, I'm a starting user of R. I have installed R 1.9.1 and winedt 5.4 If I run the example from written with winedt. The summary command does not produce any output. It does when I repeat the command manualy in R. Can someone explain me what can be the problem? library(MASS) data(anorexia) anorex.1 <- glm(Postwt ~ Prewt + Treat + offset(Prewt), family = gaussian, data = anorexia) summary(anorex.1) Regards De Herdt J
"Jozef De Herdt" <jozef.deherdt at pandora.be> writes:> If I run the example from written with winedt. The summary command does not > produce any output. It does when I repeat the command manualy in R. Can > someone explain me what can be the problem? > > library(MASS) > data(anorexia) > anorex.1 <- glm(Postwt ~ Prewt + Treat + offset(Prewt), > family = gaussian, data = anorexia) > summary(anorex.1)Is the winedt interface like source() or like source(...,echo=TRUE)? If the former, you need to print() objects explicitly, including summaries. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Peter Dalgaard wrote:> "Jozef De Herdt" <jozef.deherdt at pandora.be> writes: > > >>If I run the example from written with winedt. The summary command does not >>produce any output. It does when I repeat the command manualy in R. Can >>someone explain me what can be the problem? >> >> library(MASS) >> data(anorexia) >> anorex.1 <- glm(Postwt ~ Prewt + Treat + offset(Prewt), >> family = gaussian, data = anorexia) >> summary(anorex.1) > > > Is the winedt interface like source() or like source(...,echo=TRUE)?source()> If the former, you need to print() objects explicitly, including > summaries. >Well, you can also submit code using the "paste" button or shortcut (Alt-P). Uwe Ligges