Re: [R] step function stops with "subscript out of bounds"

2012-05-17 Thread David A Vavra
it in an environment in the search path. DAV -Original Message- From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] Sent: Thursday, May 17, 2012 6:46 AM To: David A Vavra Cc: r-help@r-project.org Subject: Re: [R] step function stops with "subscript out of bounds"

Re: [R] step function stops with "subscript out of bounds"

2012-05-17 Thread Prof Brian Ripley
On 17/05/2012 09:25, David A Vavra wrote: I've been having a problem using the step function to evaluate models. I've simplified the code and get the same problem using the dataset Titanic. The relevant code and output is below. The problem disappears (i.e., 'step' runs correctly) if I rerun the

[R] step function stops with "subscript out of bounds"

2012-05-17 Thread David A Vavra
I've been having a problem using the step function to evaluate models. I've simplified the code and get the same problem using the dataset Titanic. The relevant code and output is below. The problem disappears (i.e., 'step' runs correctly) if I rerun the code but change the 'loglm' call to explicit

[R] step function

2010-05-10 Thread Kim Jung Hwa
Hi All I need some help with plotting a step function, currently I'm using sfun <- stepfun(c(1, 2, 5,10, 20), c(0, 11, 22, 33, 44, 0), f=0) plot(sfun, pch=NA, main="", xlim=c(1,20)) which I working fine, but my data is in the following format: Min Max Value 1 2 11 2 5 22 510 33 10 20 44 1. To

[R] step function

2010-04-09 Thread Luis Felipe Parra
Hello I am using the step function in order to do backward selection for a linear model of 52 variables with the following commands: object<-lm(vars[,1] ~ (vars[,2:(ncol(predictors)+1)]-1)) BackS<-step(object,direction="backward") but it isn't dropping any if the variables in the model, but there

Re: [R] Step function

2010-01-29 Thread Charles C. Berry
On Fri, 29 Jan 2010, Ashta wrote: Hi All, Does the step function work in this model? I tried to run the following model but no result obtained. The computer is hanging and I killed the job several times. Below is the code. library(survival) m.fit=clogit(y~x1+x2+x3+x4, data=ftest) summary(m.f

[R] Step function

2010-01-29 Thread Ashta
Hi All, Does the step function work in this model? I tried to run the following model but no result obtained. The computer is hanging and I killed the job several times. Below is the code. library(survival) m.fit=clogit(y~x1+x2+x3+x4, data=ftest) summary(m.fit) final<- step(m.fit) Thanks in ad

Re: [R] Step Function Freezing R

2009-11-16 Thread Jgabriel
Can you think of any systemic changes that might interefere with R besides Symantec EndPoint and LiveUpdate? I have removed those programs and allocated more memory to R, but it is still way too slow. On Nov 13, 10:45 pm, J Dougherty wrote: > On Friday 13 November 2009 07:17:28 am Jgabriel wrote:

Re: [R] Step Function Freezing R

2009-11-13 Thread J Dougherty
On Friday 13 November 2009 07:17:28 am Jgabriel wrote: > I can't fully answer all these questions, but I'll do my best - There > have not been any updates of Windows, and I did not update R during > the period, although I did reinstall it after the problem started. > There have been no changes to N

Re: [R] Step Function Freezing R

2009-11-13 Thread Jgabriel
Alright, here's the update: the IT guy insists that the RAM is not the problem. RAM, according to him, is "pretty black and white". There should be enough RAM on the system for the function to work, and he was the one who installed the extra RAM in the first place. Could there be another RAM issue

Re: [R] Step Function Freezing R

2009-11-13 Thread Uwe Ligges
Jgabriel wrote: I can't fully answer all these questions, but I'll do my best - There have not been any updates of Windows, and I did not update R during the period, although I did reinstall it after the problem started. There have been no changes to Norton or any other software that uses syste

Re: [R] Step Function Freezing R

2009-11-13 Thread Jgabriel
I can't fully answer all these questions, but I'll do my best - There have not been any updates of Windows, and I did not update R during the period, although I did reinstall it after the problem started. There have been no changes to Norton or any other software that uses system resources in that

Re: [R] Step Function Freezing R

2009-11-12 Thread J Dougherty
There are some points of information you should include. One, have there been recent updates of Windows that may have altered system behaviour? Two, have you updated R during the same period? Three, have you installed software that uses system resources that were available to R before - e.g.

[R] Step Function Freezing R

2009-11-12 Thread Jgabriel
I have a question that might not be "kosher" here, but I'm running out of options and need some help. Basically using the function "step" is freezing R. I am running a model that includes a number of interactions on a large data set with a number of dummy variables representing whether an event occ