Dear Pierre,

See argument trace in ?step. Setting up trace=FALSE in your code should hide
the steps:

step(linear_model, trace=FALSE)

HTH,

Jorge


On Thu, Apr 23, 2009 at 6:34 PM, Pierre Moffard <pier.moff@yahoo.fr> wrote:

> Dear all,
>
> Is there a way of using the step function on a linear model such that all
> the steps are not printed out?
>
> Say I have a matrix X of 50 explanatory variables and a binary response Y.
>
> linear_model<-glm(Y~X, data=my_data, family="binomial")
> SS<-step(linear_model)
>
> This last step produces all the output that would have been produced even
> if I hadn't named the result SS.
>
> SS<-step(linear_model,print=FALSE) - this doesnt work either.
>
> Does anyone have any ideas?
>
> Thank you all in advance.
>
> Best,
> Pierre
>
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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]]


