[R] R CMD check report error not finding function

2020-03-05 Thread Ruben
alpha:]]+") importFrom("stats", "optim") import(gtools) importFrom("gtools", "defmacro") Any help would be greatly appreciated Ruben -- Ruben H. Roa-Ureta, Ph. D. Consultant, ORCID ID -0002-9620-5224 Center for Environment and Water, Research Institute, King Fa

[R] High dimensional optimization in R

2018-11-28 Thread Ruben
Most numerical methods crash, but CG and spg often, and BFGS, bobyqa, newuoa and Nelder-Mead sometimes, do yield good results (all numerical gradients less than 1)  after 1 day or more running in a normal 64 bit PC with Ubuntu 16.04 or Windows 7. Ruben -- Ruben H. Roa-Ureta, Ph. D. Consultant

[R] [R-pkgs] New package: codebook

2018-03-23 Thread Ruben Arslan
I'd be happy to find collaborators who can e.g. fill in my knowledge gaps on metadata and ontologies. https://github.com/rubenarslan/codebook/issues Best, Ruben -- Ruben C. Arslan Center for Adaptive Rationality Max Planck Institute for Human Development Berlin, Germany https://www.mpib-ber

Re: [R] R and UBUNTU startup

2017-07-04 Thread Ruben Hernan Roa Ureta
I did the same transition, facing the same issues, so I settled for installation of RKWard. This pretty much reproduces my previous experience with Tinn-R and the Rgui. HTH Ruben Ruben H. Roa-Ureta, Ph. D. Senior Scientist, Center for Environment and Water

Re: [R] Multiple imputation, multinomial response & random effects

2014-01-17 Thread Ruben van eijk
does not support to analyse the data with random effects. I saw that your question is from 2012, but you still did not receive a public answer. Do you have one by now, or did you find a solution for this problem on your own? Best regards, Ruben Op zondag 3 juni 2012 17:03:21 UTC+2 schreef

Re: [R] geoRglm with factor variable as covariable

2012-10-05 Thread Ruben
mary, we see that I only have 1 beta which is equal to 1.28. I guess I made mistakes in specifying the model description, but I can't find where. Any advices would be welcome. With regards, Phil You may have covariates in your data but your model (model.5) is set up as a model without covariate

Re: [R] Strating value problem for CG in optim()

2012-06-28 Thread Ruben
f you use optimx (from package optimx) as your wrapper, you can check the Karush-Kuhn-Tucker (KKT) conditions, and try several numerical methods (not just CG) in one go. HTH Ruben On 6/28/2012 12:54 PM, nata...@orchidpharma.com wrote: Dear list-members, I have done optimization of 3 paramete

Re: [R] PLM package PGGLS strange behavior

2012-04-27 Thread Ruben de Bliek
al Sum of Squares: 386 > Multiple R-squared: 0.79176 > exactly as expected. > Which is your system? (please post the output of Sys.info) although > I'd be surprised if this were system dependent! > > You might also update the package to the last version if it isn't

Re: [R] PLM package PGGLS strange behavior

2012-04-27 Thread Ruben de Bliek
GLS", then you should use 'plm(yourformula, yourdata, > model="random")' instead, and you'll get the standard RE model. > > Best wishes, > Giovanni > > Giovanni Millo, PhD > Research Dept., > Assicurazioni Generali SpA > Via Machiavelli 4, > 34132 Trieste (Italy)

[R] PLM package PGGLS strange behavior

2012-04-26 Thread Ruben de Bliek
When using the PLM package (version 1.2-8), I encounter the probem that calling the FGLS estimator evokes strange behavior, when choosing the "random" effects model. After calling the PGGLS function to estimate FGLS, PLM gives me a warning, stating that the "random" model has been replaced with the

Re: [R] Problems loading rjags in R 2.11.0 under OS X 10.5.8

2010-08-27 Thread Ruben Garcia Berasategui
te version of R, which is not my case. Please correct me if I'm mistaken. I just ended up installing rjags 2.1.0-6 manually from the terminal and everything is working fine now. Regards, Ruben - Original Message - From: "Prof Brian Ripley" To: "Ruben Garcia Berasategui"

[R] Problems loading rjags in R 2.11.0 under OS X 10.5.8

2010-08-26 Thread Ruben Garcia Berasategui
jags.1.dylib Referenced from: /Library/Frameworks/R.framework/Resources/library/rjags/libs/i386/rjags.so Reason: image not found Error: package/namespace load failed for 'rjags' Any help regarding how to solve this problem would be greatly appreci

[R] Problems executing cor(dataset) function in R 2.11.0 for OS X ( It works fine in R 2.10.1)

2010-05-10 Thread Ruben Garcia Berasategui
ssage > datavar<-read.csv("dataset_readingTests.csv") > cor(datavar) Error in cor(datavar) : 'x' must be numeric The funny thing is that when I tried to do the same example using R 2.10.1, it worked fine. Any ideas regarding how to solve this prob

[R] Help on Html format R 2.10

2009-11-26 Thread Ruben Cabrera
advance, Ruben Cabrera __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Help on Html format R 2.10

2009-11-26 Thread Ruben Cabrera
Hello Again: Let me answer myself because I already solved my problem: I found the file "...R\R-2.10.0\Rprofile.site" and used options(help_type="html"). Thanks. Ruben Cabrera On Thu, Nov 26, 2009 at 7:41 PM, Ruben Cabrera wrote: > Hello: > > I´m trying to chang

Re: [R] Help on Html format R 2.10

2009-11-26 Thread Ruben Cabrera
advance, Ruben Cabrera __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Help with Rserve

2009-11-12 Thread Ruben Cabrera
Dear colleagues: I'm very interested in Rserve because I'm trying to model (time series) remotely using a terminal (Windows XP) over a database in a server (Windows Vista) by internet. My first question: Is Rserve the solution to work remotely with R (for time series analysis) with databases? If

Re: [R] poisson lognormal regression

2009-09-17 Thread Ruben Roa Ureta
data and write the > loglike function and then optimize. > regards   I suggest you define a function with the process model and the likelihood and then use nlm to minimiza the negative log-likelihood. See the examples at the end of the nlm help. HTH Ruben __

[R] coxph

2008-11-05 Thread Feldman, Ruben
Hello, I ran the coxph model and everything worked fine. When I extract the output from the basehaz(y) function and was wondering if that baseline is cumulative or not. I then do: F(t,t+1)=1-exp(h_0(t+1) exp(coeff(1)*covariate(1)+...)) Does this give me the probability of death from t to t+1 (in

[R] Plotting 2D Logistic regression

2008-10-17 Thread Feldman, Ruben
Hi, My data has time series for different variables and I want to predict "ctw" with the value of each other variable at that point in the series. I have run a logistic regression: logreg <- glm(ctw ~ age + OFICO + ... + CCombLTV, data=mydata, family=binomial("logit")) And I am trying to get a plo

[R] Package

2008-10-17 Thread Feldman, Ruben
Hi, I was trying to plot the logistic regression from a regression "logreg" I just ran. I downloaded the "car" package from the R website and went to Packages -> install package from local zip file I checked in my library file and the package is there. I restarted R. I then ran the command: reg.li

[R] Strange error message from geoR´s likfit ( ) lik. max. func.

2008-08-15 Thread Ruben Roa Ureta
of geoR, and yet the current version fails. I have tried in Windows Vista and Windows XP (I haven't tried in Linux systems) and the problem occurs in both systems. Below I show the issue with simulated data. Is it a geoR bug? Does anybody know a solution? Thanks in advance Ruben x <- rnor

Re: [R] Pros and Cons of R

2008-05-22 Thread Ruben Roa Ureta
> Hi, > > I am doing a very informal presentation for my office about R capabilities > to deal with and analyze spatial data, display data and maps, and > connections with GIS. I've used in my presentation info from the CRAN, the > spatial Task view, and the more striking graphics examples from > h

Re: [R] points size in plots

2008-05-02 Thread Ruben Roa Ureta
use the na.rm=TRUE argument of max(). If the standard errors are very different, you can multiply the quantity evaluated for cex with a positive constant, say u <- rnorm(10,2,3) v <- rnorm(10,5,4) se.u <- runif(10,1,4) se.v <- runif(10,4,7) x <- 2:11 w=2.5 plot(x,u,cex=w*(1/se.u

Re: [R] Multinomial Logit Regression

2008-04-12 Thread Ruben Roa Ureta
> Hi again. I believe that I described the things bad before. > > I want to make the analysis with a sample data (train.set) of dataset for > later see if the predictions adjust to the rest of data non selected with > the sample train. > > Then, of the same form in glm: > > library(nnet) > net <-

Re: [R] Overlapping distributions (populations) - assigning an individual to a population?

2008-04-08 Thread Ruben Roa Ureta
> Rolf, > > > On Wed, 2008-04-09 at 10:57 +1200, Rolf Turner wrote: >> On 9/04/2008, at 10:30 AM, Phil Rhoades wrote: >> >> > People, >> > >> > Say a particular measure of an attribute for individuals in different >> > populations gives a set of overlapping normal distributions (one >> > distributi

Re: [R] How to read HUGE data sets?

2008-02-29 Thread Ruben Roa Ureta
To read in a few columns you can can also use something like, reduced.data<-do.call("cbind",scan(file='location/name',what=list(NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL),flush=TRUE)) where only columns 8 and 10 where saved in your object. Rubén __

Re: [R] Leyenda

2008-01-18 Thread Ruben Roa Ureta
Ligges, y hay varios más respecto del mismo tema. HTH Ruben __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, mi

Re: [R] Power model in R

2007-11-28 Thread Ruben Roa Ureta
> Dear all, > > How can I fit a power model in R. > > Thanks in advance, > > miltinho > > > > para armazenamento! > > [[alternative HTML version deleted]] Try the approach below with the lognormal distribution for the data. The data is real. Rubén y<-c(2841,1151,1579,1491,1306,2294,1781,1