Re: [R] barp {plotrix} Start bars at 0 with a vector of positive values

2014-06-14 Thread Pascal Oettli
Hi Jim, Yes, it seems to work. Thanks. Regards, Pascal On Sat, Jun 14, 2014 at 2:03 PM, Jim Lemon j...@bitwrit.com.au wrote: On Sat, 14 Jun 2014 12:57:12 PM you wrote: Hi Jim, I tried your fix. This one works: barp(c(2,3,4,5,6,7,8), ylim=c(-10,10)) This one fails:

[R] question about chi values GLM

2014-06-14 Thread Luis Fernando García
Dear all, I am making an analysis using a GLM using three explanatory variables and a response variable. I need to obtain a table similar to this one, http://postimg.org/image/5sau79wlt/r nevertheless, I have not been able to do it. I am having a hard time specially getting the chi square

Re: [R] question about chi values GLM

2014-06-14 Thread peter dalgaard
The column labeled Deviance pretty much _is_ the chi-square, specifically the likelihood ratio test statistic, which has an asymptotic chi-square distribution. (Using test=Rao gives you the alternative Rao efficient score test, which in your case doesn't make much of a difference.) Notice

[R] .Internal(filledcontour()) - ancient history or just plain wrong?

2014-06-14 Thread Raphael Päbst
Hello everyone! In my ongoing odyssey through badly dokumented and sparingly commented R-code, I've come across something that baffles me. The following line of code .Internal(filledcontour(as.double(x), as.double(y), z, as.double(levels), col = col)) not surprisingly results in an error,

Re: [R] .Internal(filledcontour()) - ancient history or just plain wrong?

2014-06-14 Thread Prof Brian Ripley
On 14/06/2014 10:04, Raphael Päbst wrote: Hello everyone! In my ongoing odyssey through badly dokumented and sparingly commented R-code, I've come across something that baffles me. The following line of code .Internal(filledcontour(as.double(x), as.double(y), z, as.double(levels), col = col))

Re: [R] .Internal(filledcontour()) - ancient history or just plain wrong?

2014-06-14 Thread Raphael Päbst
You are right, it was   there is no .Internal function 'filledcontour' and changing it to .filled.contour() removed the problem. Just out of curiosity, would the old version with .Internal(filledcontour()) have worked on older R-Versions? Not that I fully understand how .Internal() works and

Re: [R] .Internal(filledcontour()) - ancient history or just plain wrong?

2014-06-14 Thread Prof Brian Ripley
On 14/06/2014 10:30, Raphael Päbst wrote: You are right, it was there is no .Internal function 'filledcontour' and changing it to .filled.contour() removed the problem. Just out of curiosity, would the old version with .Internal(filledcontour()) have worked on older R-Versions? Possibly.

[R] Numerical integration with R

2014-06-14 Thread Christofer Bogaso
Hi again, I was tying to solve following 2-fold integration with package cubature. However spending approximately 2 hours it failed to generate any number. I am using latest R with win-7 machine having 4gb ram. library(cubature) f - function(x) { + z1 - x[1] + z2 - x[2] + + Rho = 1 + + L -

Re: [R] question about chi values GLM

2014-06-14 Thread Prof Brian Ripley
On 14/06/2014 09:45, peter dalgaard wrote: The column labeled Deviance pretty much _is_ the chi-square, specifically the likelihood ratio test statistic, which has an asymptotic chi-square distribution. (Using test=Rao gives you the alternative Rao efficient score test, which in your case

Re: [R] Numerical integration with R

2014-06-14 Thread David Winsemius
On Jun 14, 2014, at 7:40 AM, Christofer Bogaso wrote: Hi again, I was tying to solve following 2-fold integration with package cubature. However spending approximately 2 hours it failed to generate any number. I am using latest R with win-7 machine having 4gb ram. library(cubature) f -

[R] Logistic Regression

2014-06-14 Thread javad bayat
Dear all, I have to use Zelig package for doing logistic regression. How can I use Zelig package for logistic regression? I did this code by glm function: glm1 = glm(kod~Curv+Elev+Out.c+Slope+Aspect,data=data, family=binomial) summary(glm1) But the results were not appropriate for my

[R] Output for Boot function in Car package

2014-06-14 Thread Dan Hughes
Dear users, Can anyone help with a rather simplistic question about the interpretation of output using the Boot ( ) function in the Car package? I am trying to bootstrap a simple univariate linear regression in order to look at the bootstrap regression coefficients e.g. mod1 - lm (y~x) mod1.b -

Re: [R] data format setting

2014-06-14 Thread eliza botto
Thanks Frede,it helped alot. eliza From: fr...@vestas.com To: eliza_bo...@hotmail.com; r-help@r-project.org Date: Sat, 14 Jun 2014 06:09:08 +0200 Subject: RE: [R] data format setting Hi Eliza To me it seems like that you're not thinking before you messing about with the data before an

[R] How to draw Bubble chart with mini pie charts as bubbles in R

2014-06-14 Thread Agony
Dear all, Good day! Could anybody help me how to draw a bubble chart with mini pie charts as bubbles in R ? Introducing any experiences, books, booklet or source code will appreciated. Bunch of thanks. Best, Amir __ R-help@r-project.org mailing list

Re: [R] Output for Boot function in Car package

2014-06-14 Thread David Winsemius
On Jun 14, 2014, at 1:15 AM, Dan Hughes wrote: Dear users, Can anyone help with a rather simplistic question about the interpretation of output using the Boot ( ) function in the Car package? I am trying to bootstrap a simple univariate linear regression in order to look at the

Re: [R] Logistic Regression

2014-06-14 Thread Suzen, Mehmet
You might want to read this vignette: http://cran.r-project.org/web/packages/HSAUR/vignettes/Ch_logistic_regression_glm.pdf On 14 June 2014 19:53, javad bayat j.bayat...@gmail.com wrote: Dear all, I have to use Zelig package for doing logistic regression. How can I use Zelig package for

Re: [R] Defining default method for S3, S4 and R5 classes

2014-06-14 Thread Suzen, Mehmet
There is a nice tutorial on this: http://adv-r.had.co.nz/OO-essentials.html For an in depth guide, have a look at the book from John Chambers, Software for data analysis programming with R. On 13 June 2014 12:20, Luca Cerone luca.cer...@gmail.com wrote: Dear all, I am writing a script

Re: [R] How to draw Bubble chart with mini pie charts as bubbles in R

2014-06-14 Thread Jim Lemon
On Sat, 14 Jun 2014 01:03:21 PM Agony wrote: Dear all, Good day! Could anybody help me how to draw a bubble chart with mini pie charts as bubbles in R ? Introducing any experiences, books, booklet or source code will appreciated. Hi Amir, The floating.pie function (plotrix) might do

[R] sort() depends on locale

2014-06-14 Thread Marius Hofert
Hi, If I use invisible(Sys.setlocale(LC_COLLATE, C)) in ~/.Rprofile, then sort(c(L.Y, Lu, L.Q)) [1] L.Q L.Y Lu whereas using invisible(Sys.setlocale(LC_COLLATE, en_US.UTF-8)) results in sort(c(L.Y, Lu, L.Q)) [1] L.Q Lu L.Y I know this issue has appeared already