[R] Novice Questions
bwmoore22 at yahoo.com
Tue Jul 1 17:02:36 CEST 2003
The print and echo delay from source() was caused by
the Windows RGUI Misc->Buffer Output option, which is
turned on by default in 1.7.1 (don't know about other
Thank you for some very useful comments, and for
ending a couple of days of frustration.
--- Spencer Graves <spencer.graves at PDF.COM> wrote:
> Hi, Bruce:
> I'm overwhelmed. Questioners seem to get
> quicker, more informative
> responses to questions that are short, well written
> and easily and
> quickly understood, and preferably include a toy
> example that someone
> else can run quickly to reproduce the problem and to
> alternative solutions.
> I see you are using "source" and would like to
> get more output. Did
> you check "?source"? This function in R has
> arguments "echo" and
> "verbose", which may produce what you want. If
> you've already tried
> that, then the problem may be output buffering, and
> I don't know how to
> modify that parameter. A search of
> "www.r-project.org" -> search -> "R
> Site Search" might help. Or ask a question focused
> specifically on
> that, giving also which version of R you are using
> under which operating
> I rarely use "source". More often, I have R
> commands in another file
> and copy and paste into R the commands I want to
> run. That makes it
> easier for me to isolate errors, etc.
> This does not address all your questions, but
> it's a start.
> Hope this helps.
> spencer graves
> Bruce Moore wrote:
> > I'm writing a program to perform linear
> regressions to
> > estimate the number of bank teller transactions
> > hour of various types based upon day of week, time
> > day, week of month and several prices. I've got
> > 25,000 records in my dataset, 85 columns of
> > transaction counts (used 1 at a time), about 50
> > columns of binary indicators (day, week, pay
> > hour, branch), and a half dozen real valued
> > My program hangs on some regressions as I add
> > interactions, probably due to logic problems in my
> > code or collinearity problems in the data.
> > 1) I'm running my program via the source()
> > It appears that source() does not print any
> > until it completes.
> > ---->Is there a way to get diagnostic messages to
> > print immediately rather than when the source()
> > command has completed?
> > 2) I'm fairly certain that I've got some
> > in the data set and the interactions. I've found
> > append (Ott Toomet 5/30/2003) that talks about a
> > procedure to find collinearity problems using
> > model.matrix() to generate the dataset with
> > interactions and kappa() to determine the
> > number of the matrix.
> > ---->Is there a more automated way to find
> > variables?
> > 3) Is there a way to get lm() and/or step() or
> > other package to give a model with only
> > that are significant at a particular level?
> > 4) Is there a way to suppress display of a
> > when using the RODBC odbcConnect() function, or to
> > the function to prompt for a password?
> > 5) What is the practical size limit on the number
> > terms in model? I know that I won't be able to
> > consider all interactions, but would like to have
> > idea when to give up and go with what I've got.
> > =====
> > Bruce Moore
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
More information about the R-help