[R] Sample size calculations for one sided binomial exact test

2011-11-01 Thread Andrew Redd
I'm trying to compute sample size requirements for a binomial exact test. we want to show that the proportion is at least 90% assuming that it is 95%, with 80% power so any asymptotic approximations are out of the questions. I was planning on using binom.test to perform the simple test against a

Re: [R] Dragging an .RData file into R on win-7 doesn't work?

2010-10-22 Thread Andrew Redd
NppToR is not guaranteed to work when ran as Administrator. This is due to the different permissions that is running. NppToR without admin privileges should not be able to find the running R process, or should not be able to control it. Although If you run NppToR as Admin it should be able to

Re: [R] Help request: highlighting R code on WordPress.com blogs

2010-09-09 Thread Andrew Redd
The question would be performance issues for having too many functions. We could just limit it to the reserved keywords. Another option for the functions is to highlight anything that looks like a function with the regular expression /[\w._]+(?=\()/ that is any function name with periods and

[R] predict.lda breaks when priors are specified

2010-05-16 Thread Andrew Redd
Dear R help, What am I doing wrong here? when I don't specify the priors it works just fine but when I specify the priors it breaks.  Does anyone know why and how I can fix it? N=2 ncontrol=ncases=50 X - as.matrix(rnorm(N,0,1)) eta - -5.3 + X * 1.7 p - exp(eta)/(1+exp(eta)) Y -

Re: [R] predict.lda breaks when priors are specified

2010-05-16 Thread Andrew Redd
Never mind. Stupid misplaced 's'. -Andrew On Sun, May 16, 2010 at 5:39 PM, Andrew Redd ar...@stat.tamu.edu wrote: Dear R help, What am I doing wrong here? when I don't specify the priors it works just fine but when I specify the priors it breaks.  Does anyone know why and how I can fix

[R] Derivative of the probit

2010-05-06 Thread Andrew Redd
Is there a function to compute the derivative of the probit (qnorm) function in R, or in any of the packages? Thanks, -Andrew [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Changing the Prompt for browser()

2010-03-05 Thread Andrew Redd
Is there a way that I can change the prompt for within a browser() call. I often use use code like with(obj1,browser()) Browse[1] Is there a way that I can set it so that I can get something like with(obj1,browser(prompt=obj1)) obj1[1] I know that prompt is not a valid option for browser,

Re: [R] R user defined language file for NotePad++

2009-10-08 Thread Andrew Redd
insist on having a useDefineLang.xml file here is a direct link to one of my early versions before I created the syntax generator, which also extracts keywords from a packages in your library. http://www.stat.tamu.edu/~aredd/site/sites/default/files/userDefineLang_R.xml -Andrew Redd On Thu, Oct 8

Re: [R] portable R editor

2009-03-02 Thread Andrew Redd
. I'll update that soon. Andrew Redd On Mon, Mar 2, 2009 at 8:13 PM, Michael Bibo michael_b...@health.qld.gov.au wrote: Werner Wernersen pensterfuzzer at yahoo.de writes: Hi, I have been dreaming about a complete R environment on my USB stick for a long time. Now I finally want

[R] Rf_error crashes entire program.

2008-07-28 Thread Andrew Redd
: 0.18034.988e-017 PING and here the program crashes. I've tried this in multiple places and sometimes the error is thrown sometimes not. Does anyone have an idea of what is going on. I could not find any discussion of this error yet. Thank you, Andrew Redd [[alternative HTML version

Re: [R] Rf_error crashes entire program.

2008-07-28 Thread Andrew Redd
Switching all of my printfs to Rprintf fixed the problem the errors now proceed correctly. I was unable to reproduce the error, but now that is irrelevant, at least to me. Thanks for the help. -Andrew [[alternative HTML version deleted]] __