Re: [R] Second & subsequent calls to function fails. Please help debug.

2008-03-29 Thread Duncan Murdoch
On 29/03/2008 9:47 PM, Michael Kubovy wrote: > Dear R-helpers, > > I'm running Sweave() on a file. First run: > > Sweave('20080331.Rnw') > Writing to file 20080331.tex > Processing code chunks ... > 1 : term hide (label=setup) > 2 : echo term verbatim (label=oatvar) > 3 : echo term verbatim

[R] Second & subsequent calls to function fails. Please help debug.

2008-03-29 Thread Michael Kubovy
Dear R-helpers, I'm running Sweave() on a file. First run: > Sweave('20080331.Rnw') Writing to file 20080331.tex Processing code chunks ... 1 : term hide (label=setup) 2 : echo term verbatim (label=oatvar) 3 : echo term verbatim (label=oatvar1) 4 : echo term verbatim (label=oat2wt) 5 :

Re: [R] Alignment and Reshaping of the matrix

2008-03-29 Thread jim holtman
Is this what you are after: > x <- read.table(textConnection("85 .90 86 .89 87 .98 86 .87 + 88 .98 90 .78 88 .76 89 .56 + 90 .67 95 .67 89 .89 90 .87 + 91 .56 96 .87 90 .76 92 .98")) > closeAllConnections() > odd <- seq(1, ncol(x), by=2) > x.r <- range(x[,odd]) > # create large array starting from

[R] Alignment and Reshaping of the matrix

2008-03-29 Thread dinesh kumar
Dear R users, I have a matrix like 85 .90 86 .89 87 .98 86 .87 88 .98 90 .78 88 .76 89 .56 90 .67 95 .67 89 .89 90 .87 91 .56 96 .87 90 .76 92.98 each pair of columns present a variable name and next the value. I have matrix with more than 500 rows and column. Now I want to convert this matrix

[R] fitting an AR-TAR-GARCH MODEL

2008-03-29 Thread aleda
I am trying to fit the model above. I know how to do for an AR-GARCH , but I do not know how to use the TAR function , I do not know if it is possible to use a TAR-GARCH formula for the variance in the garchOxFit command. With many thanks, Adela Popescu. -- View this message in context: http://

Re: [R] DE optimization with equality constraint

2008-03-29 Thread Paul Smith
On Sat, Mar 29, 2008 at 9:33 PM, Hans W. Borchers <[EMAIL PROTECTED]> wrote: > > Reply to "Optimization with constraint" on March 14, 2008 > > One can get an accurate solutons applying the "Differential Evolution" > algorithm > as implemented in the DEoptim package: > > f2 <- function(x){ >

[R] DE optimization with equality constraint

2008-03-29 Thread Hans W. Borchers
> Reply to "Optimization with constraint" on March 14, 2008 One can get an accurate solutons applying the "Differential Evolution" algorithm as implemented in the DEoptim package: f2 <- function(x){ if (x[1] + x[2] < 1 || x[1] + x[2] > 1) { r <- Inf } else {

[R] Differentiation under the integral sign by uper strip

2008-03-29 Thread Viktorija Nebelenkas
Hello, everybody, I would like to now, how to compute derivative the integral by uper strip in R, f.e. I need to compute derivative by alpha function = FI (alpha*sigma), where FI(*) - standart normal distribution Thank You in advance BR, Victoria __

Re: [R] Problem installing aroma.affymetrix on Solaris 9 with R-2.6.2

2008-03-29 Thread Prof Brian Ripley
This is the wrong list for questions about Bioconductor packages: please do study the posting guide (and no HTML mail, please). stdint.h is part of C99. My guess is that your unspecified compiler + obsolete OS is not C99 compliant. Since Solaris 8 has inttypes.h (which is supposed by POSIX to

Re: [R] directory of R "consultants for hire"

2008-03-29 Thread Chuck Cleland
On 3/29/2008 12:56 PM, Thomas Pujol wrote: > Does anyone know of a directory that lists consultants with expertise in R, > as well as other statistical and computing skills, ideally with geographic > location and other pertinent information? > > If one does not exist, might this be a good resour

[R] how to fit a copula using real data?

2008-03-29 Thread Xiaoheng Zhang
Dear all, I just came to R a few days ago. Now I have a problem that I have two correlated variables and want to first fit a Gaussian copula, then sample it to generate simulated variables. I have spent last two days looking at R archive and copula help file but couldn't find what I need. If my un

[R] directory of R "consultants for hire"

2008-03-29 Thread Thomas Pujol
Does anyone know of a directory that lists consultants with expertise in R, as well as other statistical and computing skills, ideally with geographic location and other pertinent information? If one does not exist, might this be a good resource to create? -

[R] Generating maps in R

2008-03-29 Thread Aleksandr Andreev
Greetings! I am trying plot some data on a map in R. Here's the scenario. I have a variable called probworkinghealthy which contains a predicted probability of employment for every individual in my sample (about 100,000 observations). I have another variable, called a001ter, which contains the su

[R] Problem installing aroma.affymetrix on Solaris 9 with R-2.6.2

2008-03-29 Thread Jun Zhang
Hi List, I'm trying to install aroma.affymetrix, which depend on many packages, affyio is one of them. The task is done on 32-bit Linux without problem. The same task was done on Solaris 9 with R-2.5.1 without problem. Following is the error message when installation affyio. I did try to put a f

Re: [R] Error: cannot allocate vector of size 3.0 Gb

2008-03-29 Thread Uwe Ligges
Dear John, note that you "Date" is a factor rather than some date object. If you convert it to some date object, just a few megabytes will suffice! Best wishes, Uwe John wrote: > On Friday 28 March 2008 14:28, Daniel Nordlund wrote: >>> -Original Message- >>> From: [EMAIL PROTECTED] [

Re: [R] Singular Gradient in nls

2008-03-29 Thread Katharine Mullen
sorry, the below should read: A QR decomposition is done on the weighted gradient matrix; if the > estimate of the rank that results is less than min( the number of columns in > the gradient (the number of nonlinear parameters), the number > of rows (the number of observations) ) , nls stops. s

[R] S4 : the list of all the object

2008-03-29 Thread Christophe Genolini
Hi the list, Is it possible to get the list of all the S4 user define classes? I would like to set up a "package.skeleton.S4" but for that, I need the list of the classes... Thanks Christophe __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] AD-MB problem in package:glmmADMB

2008-03-29 Thread coldeyes.Rhelp
Hi here, i recently notice the software built by otter company know as AD-MB tools . i explore a little bit this tools under the R Package for mixed logistics model. it is a very interesting tool. but i get several questions. first question: i tried the R code below, and have the error , i can

Re: [R] Defining reference category for a cph model summary inside of a "for" loop

2008-03-29 Thread Wells, Brian
Dr. Harrell, Thanks for you help. I tried: >print(summary(f,parse(text=paste(i,'="1st Quartile"', sep='' Same result. No error, the reference category simply doesn't change. Brian -Original Message- From: Frank E Harrell Jr [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 200

Re: [R] Sweave - print \n ?

2008-03-29 Thread Charilaos Skiadas
Try adding strip.white=false on the code chunks: <>= hline() hline() @ Read ?RweaveLatex for more settings. or if you want this to happen in all code chunks add this early on in the rnw file: \SweaveOpts{strip.white=false} Haris Skiadas Department of Mathematics and Computer Science Hanover

[R] AD-model builder under R for mix logistics model, a problem.

2008-03-29 Thread coldeyes.Rhelp
the code is list below , i can run this code for laplace approximation but not importance sampling. the code work properly if use impSamp=0 , but error for any other number >0 . could you guys help me out. thanks so much ! source("http://www.mi.uib.no/~skaug/cash/lesaffre_dat.s";) library(glm

Re: [R] Error: cannot allocate vector of size 3.0 Gb

2008-03-29 Thread John
On Friday 28 March 2008 14:28, Daniel Nordlund wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > On Behalf Of John > > Sent: Friday, March 28, 2008 12:04 PM > > To: r-help@r-project.org > > Subject: [R] Error: cannot allocate vector of size 3.0 Gb > > >

Re: [R] Error: cannot allocate vector of size 3.0 Gb

2008-03-29 Thread Uwe Ligges
Can you make the data.frame available somewhere. Actually, I am surprised it need that huge amount of memory to do the plot. Best, Uwe Ligges John wrote: > Hello, > > I have read recent posts on this topic (Dr. Ronnen Levinson's Monday 02:39:55 > pm), but before I install a 64 bit system, and

Re: [R] installing a new package

2008-03-29 Thread Uwe Ligges
Don MacQueen wrote: > At the risk of oversimplifying, there are three steps to developing > and using a package: > > 1) build > 2) install > 3) load > > Evidently your package does steps 1 and 2 but not 3. > > Furthermore, it tells you, "not a valid package", and says something > that is sug

Re: [R] Sweave - print \n ?

2008-03-29 Thread Werner Wernersen
Thanks for your comments! I think using just one backslash for \n is correct because otherwise I get a "\n" literally printed out in the generated .tex code. But what I'm trying to get is just a line break, thus that the .tex code continues on a new line from the point where I put the \n. All the