Re: [R] bugs and misfeatures in polr(MASS).... fixed!

2014-08-12 Thread tjb
The official maintainers were dismissive when I suggested there were some problems I could fix with the then implementation of polr. I haven't looked at it since, sorry. On Tue, Aug 12, 2014 at 7:44 PM, Guido Biele [via R] < ml-node+s789695n4695392...@n4.nabble.com> wrote: > I modified (where ne

Re: [R] bugs and misfeatures in polr(MASS).... fixed!

2012-10-25 Thread tjb
This could well be out of date because I have not paid any attention to the official POLR code in a year or more. Attached is fixed-polr.R. cheers, Tim On Wed, Oct 24, 2012 at 10:38 PM, ahs [via R] < ml-node+s789695n4647311...@n4.nabble.com> wrote: > Great! > You can skip my question about s0 th

Re: [R] bugs and misfeatures in polr(MASS).... fixed!

2012-10-24 Thread ahs
Great! You can skip my question about s0 though, I found where it is being used, but I still struggle with the code and convergence problem. I also found something here http://biostat.mc.vanderbilt.edu/wiki/pub/Main/CharlesDupontStuff/newPolr.R that seems like someone tried to fix it, but with th

Re: [R] bugs and misfeatures in polr(MASS).... fixed!

2012-10-24 Thread tjb
Sorry, I have been away. I'll have a look at this and get back to you tomorrow. Tim On Thu, Oct 18, 2012 at 10:35 PM, ahs [via R] < ml-node+s789695n4646600...@n4.nabble.com> wrote: > Hello, > I am trying to use this fix for the convergence problem in polr, but I > don't seem to get the change of

Re: [R] bugs and misfeatures in polr(MASS).... fixed!

2012-10-18 Thread ahs
Hello, I am trying to use this fix for the convergence problem in polr, but I don't seem to get the change of code right. I redefine the function polr by the lines tjb wrote > if(missing(start)) { > # try something that should always work -tjb > u <- as.integer(table(y)) > u

Re: [R] bugs in R windows versie 12 ?

2010-12-19 Thread Duncan Murdoch
On 19/12/2010 3:00 AM, elprama wrote: Dear R-users, When you perform "run line or selection" / "Ctrl + R" in a script window then the cursor of the script window does not go to the next line but at a place further downwards. R windows version 11 does the correct job (= goes to the next line) bu

[R] bugs in R windows versie 12 ?

2010-12-19 Thread elprama
Dear R-users, When you perform "run line or selection" / "Ctrl + R" in a script window then the cursor of the script window does not go to the next line but at a place further downwards. R windows version 11 does the correct job (= goes to the next line) but version 12 does not. Is this correct ?

Re: [R] bugs and misfeatures in polr(MASS).... fixed!

2010-11-06 Thread tjb
Note that that the enhancements in my original post solve the unresolved problem of Chaehyung Ahn (22 Mar 2005) whose data I reproduce: y,x,lx 0,3.2e-02,-1.49485 0,3.2e-02,-1.49485 0,1.0e-01,-1.0 0,1.0e-01,-1.0 0,3.2e-01,-0.49485 0,3.2e-01,-0.49485 1,1.0e+00,0.0 0,1.0e+00,0.0 1,3.

Re: [R] bugs and misfeatures in polr(MASS).... fixed!

2010-11-06 Thread tjb
The start value generation code in polr is also known to fail quite frequently. For example, against the Iris data as recently posted to this list by blackscorpio ( Sep 6, 2010). > polr(Species~Sepal_Length+Sepal_Width+Petal_Length+Petal_Width,data=iris) Error in polr(Species ~ Sepal_Length + Se

[R] bugs and misfeatures in polr(MASS).... fixed!

2010-11-02 Thread Mr Timothy James BENHAM
In polr.R the (several) functions gmin and fmin contain the code > theta <- beta[pc + 1L:q] > gamm <- c(-100, cumsum(c(theta[1L], exp(theta[-1L]))), 100) That's bad. There's no reason to suppose beta[pc+1L] is larger than -100 or that the cumulative sum is smaller than 100. For pr

Re: [R] bugs when using R-2.12.0 Please HELP!

2010-10-28 Thread David Winsemius
On Oct 28, 2010, at 10:01 AM, Hao Wu wrote: Hi, R-help group, I kinda meeting a question when using R-2.12.0(Previous version is 2.10.0): When I typed "library("Biobase")", everything is alright! But when I type "library("genefilter")", it doesn't work! And echo this: Error in library.dynam

[R] bugs when using R-2.12.0 Please HELP!

2010-10-28 Thread Hao Wu
Hi, R-help group, I kinda meeting a question when using R-2.12.0(Previous version is 2.10.0): When I typed "library("Biobase")", everything is alright! But when I type "library("genefilter")", it doesn't work! And echo this: Error in library.dynam(lib, package, package.lib) : DLL 'R

Re: [R] [BUGS] [R-BUGS] error while plotting

2010-08-10 Thread Anamika Chaudhuri
Trevor, Thanks for your reply. That doesnot help Any other suggestions? Anamika On Tue, Aug 10, 2010 at 11:58 AM, Trevor Davies wrote: > I think you need to load is R2WinBUGS again. > > require(R2WinBUGS) > > Trevor > > > Hi All: > > > > I am getting an error while trying to plot in R2Winbugs >

Re: [R] BUGS

2009-08-19 Thread Uwe Ligges
stephen sefick wrote: Naively it seems that there is no school.txt file in your specified directory. Stephen Sefick On Wed, Aug 19, 2009 at 12:05 PM, James Lenihan wrote: I am running a BUGS function with following schools.sim <-bugs(data,inits, parameters,

Re: [R] BUGS

2009-08-19 Thread stephen sefick
Naively it seems that there is no school.txt file in your specified directory. Stephen Sefick On Wed, Aug 19, 2009 at 12:05 PM, James Lenihan wrote: > > I am running a BUGS function with following > > schools.sim <-bugs(data,inits, > parameters, >

[R] BUGS

2009-08-19 Thread James Lenihan
I am running a BUGS function with following   schools.sim <-bugs(data,inits, parameters, model.file="schools.txt", n.chains=3, n.iter=1000, bugs.director

Re: [R] Bugs through R in Mac

2008-01-22 Thread Uwe Ligges
Bill Northcott wrote: > On 21/01/2008, at 10:00 PM, Uwe Ligges wrote: >> Fredrik Lundgren wrote: >>> Hello, >>> >>> I recently changed from Win XP to Mac OS X (10.5.1). >>> Is there a way to run Bugs (in any version) in R (R version 2.6.0 >>> (2007-10-03)) on this platform? >>> >> >> Which way t

Re: [R] Bugs through R in Mac

2008-01-21 Thread Bill Northcott
On 21/01/2008, at 10:00 PM, Uwe Ligges wrote: > Fredrik Lundgren wrote: >> Hello, >> >> I recently changed from Win XP to Mac OS X (10.5.1). >> Is there a way to run Bugs (in any version) in R (R version 2.6.0 >> (2007-10-03)) on this platform? >> > > Which way to "run Bugs in R" did you use in Wi

Re: [R] Bugs through R in Mac

2008-01-20 Thread Vincent
You could try JAGS. According to the website it is 'an engine for the BUGS language that runs on Unix'. It runs on Mac OS X and has an interface with R (rjags). http://www-fis.iarc.fr/~martyn/software/jags/ Vincent On Jan 20, 5:58 am, Uwe Ligges <[EMAIL PROTECTED]> wrote: > hits=-2.6 tests=BAYES

Re: [R] Bugs through R in Mac

2008-01-20 Thread Uwe Ligges
hits=-2.6 tests=BAYES_00 X-USF-Spam-Flag: NO Fredrik Lundgren wrote: > Hello, > > I recently changed from Win XP to Mac OS X (10.5.1). > Is there a way to run Bugs (in any version) in R (R version 2.6.0 > (2007-10-03)) on this platform? > Which way to "run Bugs in R" did you use in Windows

[R] Bugs through R in Mac

2008-01-20 Thread Fredrik Lundgren
Hello, I recently changed from Win XP to Mac OS X (10.5.1). Is there a way to run Bugs (in any version) in R (R version 2.6.0 (2007-10-03)) on this platform? Fredrik __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help P

Re: [R] bugs() ignores my inits

2007-10-27 Thread Ben Bolker
toby909 wrote: > > Hi All > > I can specify whatever inits, it has no effect on the estimation. I am > replicating a textbook example. The result is completely trash, having > estimates > of -58.7 (sd=59.3), where it should be closer to an ml estimate of 0.585 > (SE=0.063). > > The two chai

[R] bugs() ignores my inits

2007-10-26 Thread toby909
Hi All I can specify whatever inits, it has no effect on the estimation. I am replicating a textbook example. The result is completely trash, having estimates of -58.7 (sd=59.3), where it should be closer to an ml estimate of 0.585 (SE=0.063). The two chains within one run are different, but