[R] Problemas usando jri0.4-1 y R 2.7.0

2008-06-02 Thread Borja Soto Varela
Hola, es la primera vez que mando un correo a cualquiera de las listas de correo de R y no se si esta consulta se ajusta al próposito de la r-help list o debería haberlo mandado a otra de las listas que hay. Mi problema es el siguiente: Estoy desarrollando un programa en java con llamadas a R y

[R] Fwd: Problemas usando jri0.4-1 y R 2.7.0

2008-06-02 Thread Borja Soto Varela
Hello, this is the first time I send a mail to r-help mailing list. Mi problema es el siguiente: I'm developing a program in java with calls in R and I can`t use jri 0.4-1 with R 2.7 or 2.6 .but it runs with 2.4. The problem that I get when using the latest version of R is as follows: Cannot

[R] Problems using jri0.4-1 y R 2.7.0

2008-06-03 Thread Borja Soto Varela
Hello, this is the first time I send a mail to r-help mailing list. I'm developing a program in java with calls in R and I can`t use jri 0.4-1 with R 2.7 or 2.6 .but it runs with 2.4. The problem that I get when using the latest version of R is as follows: Cannot find JRI native library! Please

[R] Weibull parameter estimation

2008-10-22 Thread Borja Soto Varela
Dear R-users I would like to fit weibull parameters using Method of moments in order to provide the inital values of the parameter to de function 'fitdistr' . I don`t have much experience with maths and I don't know how to do it. Can anyone please put me in the rigth direction? Borja

[R] How to calculate an appropiate threshold of a GPD distribution.

2008-10-28 Thread Borja Soto Varela
Dear R-users I would like to fit the GPD distribution using the gpd function from evir package. I need to pick an appropiate threshold. I know there are some useful plots to assist me in this choice like meplot or mrlplot. Do you know if there is any technique to compute or calculate an exact

[R] Fitting weibull and exponential distributions to left censoring data

2008-10-28 Thread Borja Soto Varela
Dear R-users I have some datasets, all left-censoring, and I would like to fit distributions to (weibull,exponential, etc..). I read one solution using the function survreg in the survival package. i.e survreg(Surv(...)~1, dist=weibull) but it returns only the scale parameter. Does anyone know

[R] Error using fitting weibull distribution to some data

2008-10-29 Thread Borja Soto Varela
Dear R-users, Using Maximum-likelihood Fitting (fitdistr function) I've got the next error: fitdistr(datos,weibull,lower=0) Error in optim(x = c(1.4625e-06, 0.257854, 0.0001217545, 0.11421005, 0.028721576, : L-BFGS-B *needs finite values of 'fn' * where datos is a vector of length=1000

[R] CPU usage on Windows (R 2.7.1)

2008-11-05 Thread Borja Soto Varela
Dear R-users, I'm using R (2.7.1) under windows and I've got a function written in R that calls a Fortran 77 subroutine using both interface function (.C and .Fortran). The Fortran 77 source was compiled to a shared library using g77 (3.4.5). When I call the R wrapper function, it will use the

[R] Error in optim when i call it from a function

2008-11-14 Thread Borja Soto Varela
Dear R-users I've got the next problem: I've got this *function*: fitcond=function(x,densfun,pcorte,start,...){ myfn - function(parm,x,pcorte,...) -sum(log(dens(parm,x,pcorte,...))) Call - match.call(expand.dots = TRUE) if (missing(start)) start - NULL dots -

[R] Coxian Distribution

2008-12-11 Thread Borja Soto Varela
Hello R-users. I want to know if there is in R the distribution and density function of the Coxian. If there isn't, It will help if someone has written this functions. Thanks Borja [[alternative HTML version deleted]] __ R-help@r-project.org

[R] Complex integration in R

2008-12-11 Thread Borja Soto Varela
Dear R-user I need a function to approximate a complex integration. My function is: aprox2=function(s,x,rate){ dexp(x,rate)*exp(-s*x) } where argument s is a complex number. I can't use the integrate function because it's only used with numeric arguments Does anyone know some function to

[R] Print a list in columns

2008-12-20 Thread Borja Soto Varela
Dear R-Users I have a list with two vectors of doubles tha have different lengths. I want to export it to a file and I also want to print it in two columns. I try with write.table but it need vectors of the same length. Does anyone know how to do it? Thanks Borja [[alternative HTML

[R] Fitting pareto to some data

2009-01-10 Thread Borja Soto Varela
Dear R-users, I am trying to fit pareto distribution to some data but i've one problem. Using optim to calculate the maximum of the likelihood function of the pareto I use as start parameters the moments method(using the distribution function in the package actuar): media=mean(x)