Re: [R] Graphical presentation of logistic regression

2005-09-14 Thread Anon.
Beale, Colin wrote: Hi, I wonder if anyone has written any code to implement the suggestions of Smart et al (2004) in the Bulletin of the Ecological Society of America for a new way of graphically presenting the results of logistic regression (see

Re: [R] The Perils of PowerPoint

2005-09-06 Thread Anon.
Mike Waters wrote: And thus to that 'New Age' Management Role, that of the Professional PowePoint Ranger. He (invariably he) who culls the fruits of the labours of others to present in ever more slick PowerPoint compendia, whilst never sullying their hands with 'real' work. In academia

[R] Converting characters to numbers in data frames

2005-08-25 Thread Anon.
I'm sure I'm missing something obvious here, but I can't find the solution (including in the FAQ etc.). I have a vector of names of variables like this: NRes.x.y. where x and y are numbers. I want to extract these numbers as numbers to use elsewhere. I can extract the numbers as a list of

Re: [R] help: how to change the size of a window after it has been created

2005-07-14 Thread Anon.
Marc Schwartz wrote: On Thu, 2005-07-14 at 14:38 +0200, wu sz wrote: Hello, I wish to plot some figures in a window in turn, but the size of these figures is different, so how can I change the size of the window by resetting the parameters before each plotting? Thank you, Shengzhe Other

Re: [R] Very Slow Gower Similarity Function

2005-04-18 Thread Anon.
Jari Oksanen wrote: On 18 Apr 2005, at 19:10, Tyler Smith wrote: Hello, I am a relatively new user of R. I have written a basic function to calculate the Gower similarity function. I was motivated to do so partly as an excercise in learning R, and partly because the existing option (vegdist in

Re: [R] Different graph type can coexisti??

2004-12-19 Thread Anon.
Landini Massimiliano wrote: Please consider a data frame A B C D 1 4 5 0 2 3 2 75 3 4 1 84 4 5 1 90 5 3 0 100 Is there a way to plot column B and C as barplot *and* D as line on the same

Re: [R] How about a mascot for R?

2004-12-02 Thread Anon.
David Scott wrote: On Fri, 3 Dec 2004, Patrick Connolly wrote: On Thu, 02-Dec-2004 at 02:08PM -0600, Erin Hodgess wrote: | How about an R-madillo? I'm for R-gnu which already has a song (as pointed out by Murray Jorgensen some time back). I'm sure an arrangement could be worked out with the Emacs

Re: [R] Running sum

2004-11-19 Thread Anon.
Prof Brian Ripley wrote: ?cumsum On Fri, 19 Nov 2004, Sean Davis wrote: I have vector X of length N that I want to have a running sum for (called Y). I just need max(Y). I do this with a for loop like so: Y - vector(length=N) Y[1] - X[1] for (i in 2:N) { Y[i] - Y[i-1]+X[i] }

Re: [R] (no subject)

2004-10-31 Thread Anon.
fang lai wrote: Dear all, I have several questions regarding fisher.test() in R, and I'd highly appreciate any help with it. I have a group of observations, each having people's income, and an indicator of whether selected in or out a program. I want to test the difference between income of people

[R] Odd behaviour with scale()

2004-10-20 Thread Anon.
Moi! A student here has been getting a bit irritated with some side effects of scale() (OS is Windows XP, the behaviour occurs in R 2.0.0, but not 1.7.1). The problem is that she scales a variable in a data frame, then does a regression, and tries to get some predictions for some new data.

Re: [R] BUGS and OS X

2004-09-16 Thread Anon.
it. It may not be easiest to use. The current version seems to be a bit oldish and not quite complete, but somebody claimed that they may start developing Bassist again. Actually, Bob O'Hara (who usually calls himself Anon. in this list) should know more, and hopefully this message will prompt him to tell

Re: [R] getting started on Bayesian analysis

2004-09-15 Thread Anon.
Jari Oksanen wrote: On Wed, 2004-09-15 at 03:27, HALL, MARK E wrote: I've found Bayesian Methods: A Social and Behavioral Sciences Approach by Jeff Gill useful as an introduction. The examples are written in R and S with generalized scripts for doing a variety of problems. (Though I never

Re: [R] Population simulation.

2004-07-26 Thread Anon.
[EMAIL PROTECTED] wrote: Hello, can anyone tell me if R has any special function for simulating the structure of human populations? Something like the genetic algorithm? I need to simulate a sample of a population with a specific structure. Is there something on R that can help me? As

[R] Odd behaviour of step (and stepAIC)?

2004-03-19 Thread Anon.
I can only assume I'm betraying my ignorance here, but this is not what I would expect. I'm getting the following from a stepwise selection (with both step and stepAIC): step(lm(sqrt(Grids)~ SE + Edge + NH), scope=~ (Edge + SE + NH)^2) Start: AIC= 593.56 sqrt(Grids) ~ SE + Edge + NH

Re: [R] Probit predictions outside (0,1) interval

2004-03-05 Thread Anon.
Arnab mukherji wrote: Hi! I was trying to implement a probit model on a dichotomous outcome variable and found that the predictions were outside the (0,1) interval that one should get. I later tried it with some simulated data with a similar result. Here is a toy program I wrote and I cant

[R] Problem with Integrate

2004-03-02 Thread Anon.
The background: I'm trying to fit a Poisson-lognormal distrbutuion to some data. This is a way of modelling species abundances: N ~ Pois(lam) log(lam) ~ N(mu, sigma2) The number of individuals are Poisson distributed with an abundance drawn from a log-normal distrbution. To fit this to data, I

Re: [R] Problem with Integrate

2004-03-02 Thread Anon.
Thomas Lumley wrote: On Tue, 2 Mar 2004, Anon. wrote: The background: I'm trying to fit a Poisson-lognormal distrbutuion to some data. This is a way of modelling species abundances: N ~ Pois(lam) log(lam) ~ N(mu, sigma2) The number of individuals are Poisson distributed with an abundance drawn

[R] Offsets in glmmPQL?

2003-07-11 Thread Anon.
I've got a colleague who's using a GLMM to analyse her data, and I've told her that she needs to include an offset. However, glmmPQL doesn't seem to allow one to be included. Is there anyway of doing this? Bob -- Bob O'Hara Rolf Nevanlinna Institute P.O. Box 4 (Yliopistonkatu 5) FIN-00014

[R] Maximisation of likelihood of a discrete parameter

2003-07-02 Thread Anon.
Moi! I have a problem where I want to find the ML estimate of a discrete parameter. I just want a function like optim that finds the max/min value for a function. Does anyone know of such a function for R? Thanks. Bob -- Bob O'Hara Rolf Nevanlinna Institute P.O. Box 4 (Yliopistonkatu 5)