Re: [R] gee: suppress printout
On 02.02.2012 06:37, Ginata86 wrote: I am using the method to sink the output. However, it can only suppress 'user's initial regression estimate ' and still display the following sentence ' Beginning Cgee S-function, @(#) geeformula.q 4.13 98/01/27' You have been told to use suppressMessages() already. Uwe Ligges I am just wondering is there any way that we can also suppress this one? Because I need to loop this for many times, it's annoying to display this one. -- View this message in context: http://r.789695.n4.nabble.com/gee-suppress-printout-tp908053p4350605.html Sent from the R help mailing list archive at Nabble.com. __ 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. __ 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.
Re: [R] gee: suppress printout
I don't think it can be removed, a message like this has been coming out for several years and there may be a good reason why it is there. Your best bet is probably to approach the package maintainer with a suggestion to alter the code. Regards Søren -Oprindelig meddelelse- Fra: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] På vegne af Ginata86 Sendt: 2. februar 2012 06:38 Til: r-help@r-project.org Emne: Re: [R] gee: suppress printout I am using the method to sink the output. However, it can only suppress 'user's initial regression estimate ' and still display the following sentence ' Beginning Cgee S-function, @(#) geeformula.q 4.13 98/01/27' I am just wondering is there any way that we can also suppress this one? Because I need to loop this for many times, it's annoying to display this one. -- View this message in context: http://r.789695.n4.nabble.com/gee-suppress-printout-tp908053p4350605.html Sent from the R help mailing list archive at Nabble.com. __ 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. - Ingen virus fundet i denne meddelelse. Kontrolleret af AVG - www.avg.com Version: 2012.0.1913 / Virusdatabase: 2112/4780 - Udgivelsesdato: 01-02-2012 __ 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.
Re: [R] gee: suppress printout
I am using the method to sink the output. However, it can only suppress 'user's initial regression estimate ' and still display the following sentence ' Beginning Cgee S-function, @(#) geeformula.q 4.13 98/01/27' I am just wondering is there any way that we can also suppress this one? Because I need to loop this for many times, it's annoying to display this one. -- View this message in context: http://r.789695.n4.nabble.com/gee-suppress-printout-tp908053p4350605.html Sent from the R help mailing list archive at Nabble.com. __ 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.
[R] gee: suppress printout
I'm using the function gee from the library(gee) gee(Y~X,id=clust.id,corstr=exchangeable,b=tmc$coef,family=binomial(link=logit),silent=T) Every time it runs, it dutifully prints out Beginning Cgee S-function, @(#) geeformula.q 4.13 98/01/27 user's initial regression estimate [,1] [1,] -4.5278335 [2,] -0.2737999 [3,] -0.9528306 [4,] 0.9393861 [5,] -0.6618903 Unfortunately, i run thousands of these and the output gets extremely lengthy. Is there any way to suppress this printout in R? Thank you, Josh _ Hotmail: Powerful Free email with security by Microsoft. [[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.
Re: [R] gee: suppress printout
joshua wells wrote: Unfortunately, i run thousands of these and the output gets extremely lengthy. Is there any way to suppress this printout in R? Thank you, Josh One function that comes to mind is sink() which allows you to redirect output somewhere else, such as a file or /dev/null which on unix-like systems is where unwanted data goes to die: sink('/dev/null') # Stuff you don't want to see. sink() # Stuff you do want to see. If you happen to be using Windows, you may be able to achieve more or less the same effect by sinking to a temporary file: sink( tempfile() ) Another function that may be useful is capture.output() Good luck! -Charlie - Charlie Sharpsteen Undergraduate Environmental Resources Engineering Humboldt State University -- View this message in context: http://www.nabble.com/gee%3A-suppress-printout-tp25866057p25866226.html Sent from the R help mailing list archive at Nabble.com. __ 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.
Re: [R] gee: suppress printout
On 13/10/2009, at 2:55 PM, joshua wells wrote: I'm using the function gee from the library(gee) gee(Y~X,id=clust.id,corstr=exchangeable,b=tmc$coef,family=binomial (link=logit),silent=T) Every time it runs, it dutifully prints out Beginning Cgee S-function, @(#) geeformula.q 4.13 98/01/27 user's initial regression estimate [,1] [1,] -4.5278335 [2,] -0.2737999 [3,] -0.9528306 [4,] 0.9393861 [5,] -0.6618903 Unfortunately, i run thousands of these and the output gets extremely lengthy. Is there any way to suppress this printout in R? I *was* going to suggest wrapping your call to gee() in suppressMessages() --- but that doesn't quite work. There are ***print()*** statements following the message statements, and there's no way to shut these up, as far as I know. So all you can do, I'm afraid, is edit the code for gee() and delete or comment out the offending message() and print() statements. Or prepend them by ``if(!silent)'' which would cause silent=TRUE to shut them up. Fortunately, since this is R, it's easy enuff to do. HTH. cheers, Rolf Turner P. S. I guess you could do some'at like sink(/dev/null) before the start of the sequence of calls to gee() and then sink() after they end, which would suppress all the unwanted bumff. But I would personally prefer the edit-the-code route. R. T. ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ 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.