[R] R and Newest version of Java

2014-10-28 Thread Antonio Paredes
Hell All, Last night I updated Java to it newest version and this morning when I got to my office some of the R packages, that I am using in a current project, are not loading at all. For example Loading required package: XLConnectJars Error : .onLoad failed in loadNamespace() for 'rJava', detail

[R] Ubuntu Upgrading to R 1.13.0

2011-09-06 Thread Antonio Paredes
Hello everyone, I'll like to know if there is an easy way to upgrade R in Ubuntu. I'd use google to search for information, but nothing seems to work. Thank you -- -Tony [[alternative HTML version deleted]] __ R-help@r-project.org mailing li

[R] Tips to export R plots (dotplot function) into latex

2011-02-20 Thread Antonio Paredes
I'm looking for some tips on how to export R plots into latex. I can't centered the plots in latex (shift to the right). -- -Tony [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] GLM Empirical Likelihood

2011-01-27 Thread Antonio Paredes
Hello, I wanted to ask if there is an R package to fit GLM (logistic for example) via empirical likelihood. -- -Tony [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] Poisson Regression

2010-10-13 Thread Antonio Paredes
Hello everyone, I wanted to ask if there is an R-package to fit the following Poisson regression model log(\lambda_{ijk}) = \phi_{i} + \alpha_{j} + \beta_{k} i=1,\cdots,N (subjects) j=0,1 (two levels) k=0,1 (two levels) treating the \phi_{i} as nuinsance parameters. Thank you very much -- -Ton

Re: [R] Fwd: Long for Loop- calling C from R - Parallel Computing

2009-10-06 Thread Antonio Paredes
1:56 PM > To: r-h...@stat.math.ethz.ch > Subject: Re: [R] Fwd: Long for Loop- calling C from R - Parallel Computing > > Antonio Paredes skreiv: > > > I'm hoping to get a response from some of the R gurus in this list. Is my > > assumption that R is not designed or build to d

[R] Fwd: Long for Loop- calling C from R - Parallel Computing

2009-10-06 Thread Antonio Paredes
-- Forwarded message -- From: Antonio Paredes Date: Tue, Oct 6, 2009 at 9:41 AM Subject: Re: [R] Long for Loop- calling C from R - Parallel Computing To: Karl Ove Hufthammer Hello again, I'm hoping to get a response from some of the R gurus in this list. Is my assumption

[R] Long for Loop- calling C from R - Parallel Computing

2009-10-05 Thread Antonio Paredes
Hello everyone, I'm running the following for loop to generate random variables in chunks of 60 at a time (l), here h is of order in millions (could be 5 to 6 millions), note that generating all the variables at once could have an impact on the final results for(j in 1:h){ dat$t.o[seq(0,g1,l)[j]+

Re: [R] Stranger Behavior -maybe not

2009-10-03 Thread Antonio Paredes
Thank you very much!!! Next time, if I know you are going to read the e-mail; I make sure to include an explanation in the form of an answer to any issue that I'm inquiring about. On Sat, Oct 3, 2009 at 9:17 PM, Duncan Murdoch wrote: > On 03/10/2009 8:53 PM, Antonio Pared

[R] Stranger Behavior -maybe not

2009-10-03 Thread Antonio Paredes
Hello everyone, When I run a for loop I noticed that the looping variable gets assigned the last value in the loop: For example, if I let h=200, and I run for(i in 1:h), i gets the value 200. What's wrong here? -- -Tony [[alternative HTML version deleted]] __

[R] Another Loop

2009-09-29 Thread Antonio Paredes
Hello everyone, Can somebody give a hint on how to go about speeding the following loop: system.time( for(i in 1:nrow(dat)){ if(dat$ycon[i]==0 || dat$ytrt[i]==0) dat$ycon[i]<-dat$ycon[i]+0.5 dat$ytrt[i]<-dat$ytrt[i]+0.5 dat$cony[i]<-dat$cony[i]+0.5 dat$trty[i]<-dat$trty[i]+0.5 }

[R] for loop

2009-09-28 Thread Antonio Paredes
Can somebody give a hint on how to speed-up the following loop: for(j in 0:KM1) { k=j*60 for(i in 1:60) { dat$yvac[k+i]= rbinom(1,dat$nvac[k+i],dat$p.trt[j+i]) } } K1=999 -- -Tony [[alternative HTML version deleted]] __ R-

[R] Fata; error:

2008-12-24 Thread Antonio Paredes
I just installed R 2.8.1 for windows. When I try to start the software I get the following: Fatal error: unable to restore saved data in .RData. Note that on my previous section I tried to read a large dataset and I got a message stating that no enough memory was avaliable (I don't have the compl

[R] Merging two data frame with different nrows

2008-12-21 Thread Antonio Paredes
hello- I'm trying to merge two data frames with different number of rows. I started with a for loop, but it just taking to long . I wanted to ask if there is any function in R to merge data frames with different number of rows. -- -Tony [[alternative HTML version deleted]] _