Re: [R] CGIwithR installation failure

2013-06-09 Thread Prof Brian Ripley
On 08/06/2013 23:27, rex wrote: Hello, CGIwithR apparently is not available on CRAN for R 2.15.x, so I It is not hosted on CRAN. You should ask its maintainer (and package installation problems most often belong on the R-devel list). See what the posting guide says about that and about

Re: [R] CGIwithR installation failure [SOLVED]

2013-06-09 Thread rex
rex r...@nosyntax.net [2013-06-08 18:05]: CGIwithR apparently is not available on CRAN for R 2.15.x, so I downloaded the source (0.73) and tried: ~/Downloads$ R CMD INSTALL CGIwithR Typo. Actually, I downloaded 0.72. Later, I found 0.73 here:

Re: [R] CGIwithR installation failure [SOLVED]

2013-06-09 Thread Prof Brian Ripley
On 09/06/2013 08:05, rex wrote: rex r...@nosyntax.net [2013-06-08 18:05]: CGIwithR apparently is not available on CRAN for R 2.15.x, so I downloaded the source (0.73) and tried: ~/Downloads$ R CMD INSTALL CGIwithR Typo. Actually, I downloaded 0.72. Later, I found 0.73 here:

Re: [R] CGIwithR installation failure

2013-06-09 Thread rex
Prof Brian Ripley rip...@stats.ox.ac.uk [2013-06-08 23:23]: On 08/06/2013 23:27, rex wrote: CGIwithR apparently is not available on CRAN for R 2.15.x, so I It is not hosted on CRAN. You should ask its maintainer (and package installation problems most often belong on the R-devel list).

Re: [R] CGIwithR installation failure [SOLVED]

2013-06-09 Thread rex
Prof Brian Ripley rip...@stats.ox.ac.uk [2013-06-09 00:22]: On 09/06/2013 08:05, rex wrote: Typo. Actually, I downloaded 0.72. Later, I found 0.73 here: http://cran.r-project.org/src/contrib/Archive/CGIwithR/ But see http://cran.r-project.org/package=CGIwithR for the current host. I did;

Re: [R] Need help on window() function of the 'zoo' package

2013-06-09 Thread Rui Barradas
Hello, Actually, Dat_zoo is not a matrix, it is an object of classes zooreg and zoo, with a dim attribute: class(Dat_zoo) dim(Dat_zoo) And the output of window() is of the same classes but without a dim attribute: wnd - window(Dat_zoo, start = as.Date(2001-01-02)) class(wnd) dim(wnd) #

[R] Dyn.load of sharing object with GSL library

2013-06-09 Thread moghadameh mirzai
Dear R-list, I want to use shared library of gsl in R(2.15.1) on unix .I have a makefile such as CC = gcc CFLAGS = -fPIC -O2 PKG_LIBS -lgsl -lgslcblas -lm -lpthread   OBJS_SPB = calc_spb.o k.o dk.o ddk.o     calc_spb.so : $(OBJS_SPB)     $(CC) -shared -o calc_spb.so $(LIBS) $(OBJS_SPB)  

[R] agnes() in package cluster on R 2.14.1 and R 3.0.1

2013-06-09 Thread Hugo Varet
Dear R users, I discovered something strange using the function agnes() of the cluster package on R 3.0.1 and on R 2.14.1. Indeed, the clusterings obtained are different whereas I ran exactly the same code. I quickly looked at the source code of the function and I discovered that there was an

Re: [R] Dyn.load of sharing object with GSL library

2013-06-09 Thread Prof Brian Ripley
On 09/06/2013 08:27, moghadameh mirzai wrote: Dear R-list, I want to use shared library of gsl in R(2.15.1) on unix .I have a makefile such as Well, don't try to use a Makefile as you do not know what you are doing. Use Makevars instead. CC = gcc CFLAGS = -fPIC -O2 PKG_LIBS -lgsl

[R] Fortunes nomination (was: colour coded dotchart)

2013-06-09 Thread Duncan Murdoch
On reading the help pages, On 13-06-08 9:32 PM, Rolf Turner wrote: ... You need to get the hang of reading the online help. The information required is actually there in ?dotchart --- it's just tersely and obscurely expressed. A certain degree of optimism is required. You need to

Re: [R] Fortunes nomination (was: colour coded dotchart)

2013-06-09 Thread Achim Zeileis
On Sun, 9 Jun 2013, Duncan Murdoch wrote: On reading the help pages, Thanks, online on R-Forge now :-) Best, Z On 13-06-08 9:32 PM, Rolf Turner wrote: ... You need to get the hang of reading the online help. The information required is actually there in ?dotchart --- it's just tersely

Re: [R] generate simple function with pre-defined constants

2013-06-09 Thread Liviu Andronic
Dear Bill, On Thu, Jun 6, 2013 at 5:36 PM, William Dunlap wdun...@tibco.com wrote: Try the following: generateABFunction - function(a, b) { force(a) force(b) function(x) a*x + b } f12 - generateABFunction(1, 2) f53 - generateABFunction(5,6) f12(10:12) #

Re: [R] Not sure this is something R could do but it feels like it should be.

2013-06-09 Thread Calum Polwart
Calum Hi Calum, I can only answer from the perspective of someone who calculated doses of alcohol for experimental subjects many years ago. It was not possible to apply a linear function across the range due to a number of factors. One is that BAC, which was the target value, is dependent upon

[R] How to read a .rar file in R

2013-06-09 Thread Deb Midya
Hi,   Thanks in advance.   May I request you to assist me for the following please.   I am using R-3.0.1 on Windows.   Is there any R package or R function to read a .rar file (file with an extension rar)?   Once again, thank you very much for the time you have given.   Regards,   Deb

Re: [R] How to read a .rar file in R

2013-06-09 Thread Prof Brian Ripley
On 09/06/2013 11:58, Deb Midya wrote: Hi, Thanks in advance. May I request you to assist me for the following please. I am using R-3.0.1 on Windows. Is there any R package or R function to read a .rar file (file with an extension rar)? Use system() with however you unpack rar files on

Re: [R] multilevel binary and ordered regression models

2013-06-09 Thread Xu Jun
Rune, Thanks a lot for pointing me to your ordinal package. It is wonderful, and I tried a random intercept model and it worked well except that probably there is something wrong with my data (size is big), I got some warning messages indicating that In sqrt(diag(vc)[1:npar]) : NaNs produced.

Re: [R] Error Object Not Found

2013-06-09 Thread Uwe Ligges
On 08.06.2013 21:35, Court wrote: Hello, I am having difficulty with a command. An error message pops up saying: Error: object 'RWGJ.wload' not found. I have installed the packages needed to run the analysis, and have saved them to my working directory. And have you actually loaded them?

Re: [R] Package 'ChoiceModelR' - Xbetas.csv? Rbetas.csv? betadraws?

2013-06-09 Thread Uwe Ligges
On 07.06.2013 21:25, Dimitri Liakhovitski wrote: Hope to get some clarity from the creators of a (wonderful) package ChoiceModelR. I am using the main function 'choicemodelr'. Since we do not know if these creators are reading the list, why not ask them directly? Best, Uwe Ligges

Re: [R] Identifying breakpoints/inflection points?

2013-06-09 Thread Uwe Ligges
Please quote the question you are answering and also send the answer to the original poster, not only to this *mailing list* the original poster may not be reading himself. Best, Uwe Ligges On 07.06.2013 09:08, dchristop wrote: You can try this: library(inflection) #you have to instsall

Re: [R] It seams that fast99 function (sensitivity package) does not work out for norm distribution.

2013-06-09 Thread Uwe Ligges
On 08.06.2013 00:54, Marino David wrote: Dear all mailing listers, Does Anyone have the same problem as mine when using the fast99 (extended-FAST method) to perform SA of model with norm distribution inputs? Why not ask the authors of the function? Best, Uwe Ligges See the simple

Re: [R] segfault -- address 0x29, cause 'memory not mapped'

2013-06-09 Thread Uwe Ligges
On 08.06.2013 15:38, mathias kuhnt wrote: Dear List, after a night of calculating, R says goodbye with a segmentation fault. *** caught segfault *** address 0x29, cause 'memory not mapped' In my functions I subsequently read in network files of about 20KB using the IGraph package.

Re: [R] Regression Tolerance Intervals - Dr. Young's Code

2013-06-09 Thread Uwe Ligges
On 08.06.2013 05:17, Muhuri, Pradip (SAMHSA/CBHSQ) wrote: Hello, Below is a reproducible example to generate the output by using Dr. Young's R code on the above subject . As commented below, the issue is that part of the code (regtol.int and plottol) does not seem to work. I would

[R] import from Stata, get NA

2013-06-09 Thread Ulrike Pasda
Dear all, I have troubles figuring out how to convert missing values from Stata (treated as -1 and -2) into NAs in R. To read in the dta file I use: data - read.dta(data.dta) Is there an option to tell R to convert the -1 and -2 into NAs ? Your help is appreciated. Thanks a lot in advance. Rike

Re: [R] import from Stata, get NA

2013-06-09 Thread David Winsemius
On Jun 9, 2013, at 7:41 AM, Ulrike Pasda wrote: Dear all, I have troubles figuring out how to convert missing values from Stata (treated as -1 and -2) into NAs in R. To read in the dta file I use: data - read.dta(data.dta) Is there an option to tell R to convert the -1 and -2 into NAs ?

Re: [R] Fortunes nomination (was: colour coded dotchart)

2013-06-09 Thread Jeff Newmiller
Oh, Lord, give me strength, for I am about to read an R Help file! Give me insight, for I must parse the words of statisticians forced by R CMD check to follow the way of the Literate Programmer! And please, Oh Lord, give me the wisdom to recall these tribulations when I set foot upon that

Re: [R] Not sure this is something R could do but it feels like it should be.

2013-06-09 Thread David Winsemius
On Jun 9, 2013, at 6:14 AM, Calum Polwart wrote: Calum Hi Calum, I can only answer from the perspective of someone who calculated doses of alcohol for experimental subjects many years ago. It was not possible to apply a linear function across the range due to a number of factors. One is

Re: [R] Regression Tolerance Intervals - Dr. Young's Code

2013-06-09 Thread Muhuri, Pradip (SAMHSA/CBHSQ)
Uwe and Dennis - Thank you so much for your comments, tips and advice. The following reproducible code has worked and given me the desired results. Pradip ### Revised Code # setwd (C:/RAPP) require (tolerance) set.seed (100);x - runif (200,0,10); y -

Re: [R] Coefficients paths - comparison of ridge, lasso and elastic net regression

2013-06-09 Thread Colstat
Hi, beginner Do you have reproducible data? I think your question is more related to statistical learning theory than R. You may want to watch Prof.Hastie's webinar. http://www.stanford.edu/~hastie/lectures.htm On Wed, Jun 5, 2013 at 10:22 AM, beginner pa...@nottingham.ac.uk wrote: I would

Re: [R] It seams that fast99 function (sensitivity package) does not work out for norm distribution.

2013-06-09 Thread Marino David
The author has already gave the illustration and solution as well. Thanks. 2013/6/9 Uwe Ligges lig...@statistik.tu-dortmund.de On 08.06.2013 00:54, Marino David wrote: Dear all mailing listers, Does Anyone have the same problem as mine when using the fast99 (extended-FAST method) to

Re: [R] It seams that fast99 function (sensitivity package) does not work out for norm distribution.

2013-06-09 Thread David Winsemius
On Jun 9, 2013, at 4:08 PM, Marino David wrote: The author has already gave the illustration and solution as well. Is that supposed to mean that you emailed the author and got a private response? Thanks. 2013/6/9 Uwe Ligges lig...@statistik.tu-dortmund.de On 08.06.2013 00:54,

[R] Using Lattice, LatticeExtra - Hide right and top axes in multipanel plots

2013-06-09 Thread Santosh
Dear Rxperts, How do I hide the top and right axes in multiple panel plots? A couple of examples are provided below.. Would highly appreciate appreciate your assistance.. #Example 1 library(latticeExtra) xyplot((1:200)/20 ~ (1:200)/20, type = c(p, g), scales = list(x = list(log =

Re: [R] Using Lattice, LatticeExtra - Hide right and top axes in multipanel plots

2013-06-09 Thread Santosh
I updated the code for the second example.. This time.. all the axes disappeared!! xyplot(b~t|G,data=q2,groups=grp,type=l,as.table=T, layout=c(3,1), par.settings=list(axis.line=list(col=0)), scales=list(x=list(rela='free',alternating=0),y=list(rela='free',alternating=0),col=1,tck=c(1,0)),

Re: [R] Using Lattice, LatticeExtra - Hide right and top axes in multipanel plots

2013-06-09 Thread Duncan Mackay
Hi You had to references to strip The axis.line in the par settings removes the axis line Have made some slight changes to your code which may be of interest I keep the panel arguments last and so avoid duplication require(grid) xyplot(b~t|G,data=q2,groups=grp, type=l,

Re: [R] cannot load pbdMPI package after compilation

2013-06-09 Thread Pascal Oettli
Hello, I am not sure whether it helps you, but I was able to install it. OpenSUSE 12.3 R version 3.0.1 Patched (2013-06-09 r62918) pbdMPI version 0.1-6 gcc version 4.7.2 OpenMPI version 1.6.3 I didn't try with the most recent version of ompi (1.6.4). Regards, Pascal On 07/06/13 21:42,

[R] Sending Email with Attachment

2013-06-09 Thread Bhupendrasinh Thakre
Hi, I am trying to send an email through gmail or outlook from my Windows PC and finding trouble to send the email. The code which I am using is given below: Code : library(sendmailR) from - a...@outlook.com to - mailto:e...@gmail.com e...@gmail.com subject - Run at mailControl =

Re: [R] Sending Email with Attachment

2013-06-09 Thread rex
Bhupendrasinh Thakre vickytha...@gmail.com [2013-06-09 20:03]: library(sendmailR) from - a...@outlook.com to - mailto:e...@gmail.com e...@gmail.com subject - Run at mailControl = list(smtpServer=blu-m.hotmail.com) attachment - type_1.pdf attachmentName - target_score.pdf attachmentObject -

Re: [R] Sending Email with Attachment

2013-06-09 Thread Bhupendrasinh Thakre
Thanks Rex for the help. So it seems that I might have to use Python or Perl to perform the action. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of rex Sent: Sunday, June 09, 2013 10:27 PM To: r-help@r-project.org Subject: Re: [R]

Re: [R] arima time series in R

2013-06-09 Thread Aakanksha Dahiya01
I am just performing arima time series analysis here.. and package used is forecast. I am just not able what is ar1,ma1 and ma2. -Original Message- From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] Sent: Friday, June 07, 2013 5:29 PM To: Aakanksha Dahiya01 Cc:

Re: [R] Loop through variables and estimate effects on several outcomes

2013-06-09 Thread arun
Hi, I assume this is what you wanted: #Your code library(gamair) data(chicago)  library(mgcv) library(splines) chicago1- chicago chicago1$date- seq(from=as.Date(1987-01-01),to=as.Date(2000-12-31),length=5114) chicago1$trend-seq(dim(chicago1)[1])  names(chicago1) [2] -pm10

Re: [R] Error Object Not Found

2013-06-09 Thread Court
Hi, I think that they are loaded. Here is the response that I get: package ‘foreign’ successfully unpacked and MD5 sums checked -- View this message in context: http://r.789695.n4.nabble.com/Error-Object-Not-Found-tp4669041p4669100.html Sent from the R help mailing list archive at

[R] All against all correlation matrix with GGPLOT Facet

2013-06-09 Thread Gundala Viswanath
I have the following data: v - rnorm(13) w - rnorm(13) x - rnorm(13) y - rnorm(13) z - rnorm(13) Using GGPLOT facet, what I want to do is to create a 5*5 matrix, where each cells plot the correlation between each pair of the above data. E.g. v-v,v-w; v-x,...,z-z What's the way to do it?

Re: [R] arima time series in R

2013-06-09 Thread Aakanksha Dahiya01
It would be great help if someone just tell me what does ar1,ma1 and ma2 signify here.. how do I further predict from these coefficients.. -Original Message- From: Aakanksha Dahiya01 Sent: Monday, June 10, 2013 9:54 AM To: 'Prof Brian Ripley' Cc: r-help@r-project.org Subject: RE: [R]

[R] How to expand.grid with string elements (the half!)

2013-06-09 Thread Gundala Viswanath
I have the following result of expand grid: d - expand.grid(c(x,y,z),c(x,y,z)) What I want is to create a combination of strings but only the half of the all combinations: Var1 Var2 1xx 2yx 3 yy 4 zy 5 xz 6zz What's the way to do it? G.V.

Re: [R] arima time series in R

2013-06-09 Thread Pascal Oettli
Hi, library(forecast) ?Arima And if you don't know what ar and ma are, you probably should read some book before to go further. Regards, Pascal On 10/06/13 14:03, Aakanksha Dahiya01 wrote: It would be great help if someone just tell me what does ar1,ma1 and ma2 signify here.. how do I