Re: [Rd] Error message for infinite probability parameters in rbinom() and rmultinom()

2023-04-10 Thread Christophe Dutang
Thanks Duncan and Martin for your answer. > Le 9 avr. 2023 à 00:33, Duncan Murdoch a écrit : > > On 08/04/2023 5:53 p.m., Martin Maechler wrote: >>>>>>> Christophe Dutang >>>>>>> on Sat, 8 Apr 2023 14:21:53 +0200 writes: >> > D

[Rd] Error message for infinite probability parameters in rbinom() and rmultinom()

2023-04-08 Thread Christophe Dutang
ler_4.2.3 tools_4.2.3 --------- Christophe DUTANG LJK, Ensimag, Grenoble INP, UGA, France Web: http://dutangc.free.fr __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-21 Thread Christophe DUTANG
You should take a look at https://CRAN.R-project.org/package=Rmpfr Regards, Christophe Christophe Dutang CEREMADE, Univ. Paris Dauphine, PSL Univ., France Web : http://dutangc.free.fr

[Rd] 64-bit integer type warning on windows

2018-03-13 Thread Christophe DUTANG
arning was removable at all? Does anyone encounter this issue? Any help is appreciated. Thanks in advance, Christophe PS: latest version of randtoolbox source code is here https://r-forge.r-project.org/scm/viewvc.php/pkg/randtoolbox/?root=rmetrics ---

Re: [Rd] registering Fortran routines in R packages

2017-05-10 Thread Christophe Dutang
lton_c and sobol_c. In the NAMESPACE, I put at the top useDynLib(randtoolbox, .registration = TRUE). Berend, I do look at your package… I still don’t figure out why it works for you! Regards, Christophe --- Christophe Dutang LMM, UdM, Le Mans, France web

Re: [Rd] registering Fortran routines in R packages

2017-05-10 Thread Christophe Dutang
. Regards, Christophe --- Christophe Dutang LMM, UdM, Le Mans, France web: http://dutangc.free.fr <http://dutangc.free.fr/> > Le 9 mai 2017 à 14:32, Berend Hasselman <b...@xs4all.nl> a écrit : > > >> On 9 May 2017, at 13:44, Christophe Dutang &

[Rd] registering Fortran routines in R packages

2017-05-09 Thread Christophe Dutang
ny help appreciated Regards, Christophe ------- Christophe Dutang LMM, UdM, Le Mans, France web: http://dutangc.free.fr __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] names treatment in optim()

2015-10-08 Thread Christophe Dutang
(hessian) res$hessian <- .External2(C_optimhess, res$par, fn1, gr1, con) if(!is.null(names(par))) names(res$par) <- names(par) if(!is.null(names(fn1(par names(res$value) <- names(fn1(par)) res } Regards, Christophe --- Christo

[Rd] names treatment in optim()

2015-09-17 Thread Christophe Dutang
8/C/fr_FR.UTF-8/fr_FR.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base Kind regards, Christophe --- Christophe Dutang LMM, UdM, Le Mans, France web: http://dutangc.fr

[Rd] names in optim()

2015-08-21 Thread Christophe Dutang
, CD --- Christophe Dutang LMM, UdM, Le Mans, France web: http://dutangc.free.fr __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Programming Tools CTV

2015-01-23 Thread Christophe Dutang
Dear Willem, Personally, I use the R-forge project for the distribution CTV : https://r-forge.r-project.org/projects/ctv/ It’s an alternative option to github. Regards, Christophe --- Christophe Dutang LMM, UdM, Le Mans, France web: http://dutangc.free.fr

Re: [Rd] [Wishlist] a 'PackageDevelopment' Task View

2014-07-27 Thread Christophe Dutang
interfaces 6 - GUI and other frond-ends 7 - Unit testing 8 - Benchmarking 9 - Automation Maybe 7 and 8 could be merged? Regards, Christophe — Christophe Dutang LMM, UdM, Le Mans, France web: http://dutangc.free.fr Le 26 juil. 2014 à 17:04, Luca Braglia lbrag...@gmail.com a écrit : 2014-07-25

Re: [Rd] Patch to add Beta binomial distribution. Mentor needed!

2012-05-22 Thread Christophe Dutang
Dear Joan, Are you aware of this page http://cran.r-project.org/web/views/Distributions.html ? If you want to contribute to R, you should write a package and submit it to CRAN. See http://cran.r-project.org/doc/manuals/R-exts.html Regards Christophe -- Christophe Dutang Ph.D. student

Re: [Rd] Beta binomial and Beta negative binomial

2012-03-16 Thread Christophe Dutang
Hi, Please look at the distribution task view (http://cran.r-project.org/web/views/Distributions.html) and the package gamlss.dist. By the way, distributions in R are implemented in source/src/nmath directory and not source/src/library/stats Regards Christophe -- Christophe Dutang Ph.D

Re: [Rd] First package submission to CRAN

2011-06-22 Thread Christophe Dutang
Hi, By default, R CMD build makes sources, you have to use --binary if you want to get binaries. But you have to submit sources to the CRAN ftp server (and not binary). So just run a R CMD build. C -- Christophe Dutang Ph.D. student at ISFA, Lyon, France website: http://dutangc.free.fr Le 22

[Rd] on the Distribution task view

2011-04-27 Thread Christophe Dutang
on the task view, as well as to list the new packages that could be added to it. Kind regards Christophe -- Christophe DUTANG Ph. D. student at ISFA, Lyon, France [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https

Re: [Rd] Wish R Core had a standard format (or generic function) for newdata objects

2011-04-27 Thread Christophe Dutang
. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Christophe DUTANG Ph. D. student at ISFA, Lyon, France

[Rd] An update of the Distribustions man page

2011-04-19 Thread Christophe Dutang
task views? But a link to the task views on those man pages could increase the popularity of the CRAN task views. Kind regards Christophe -- Christophe DUTANG Ph. D. student at ISFA, Lyon, France [[alternative HTML version deleted]] __ R

Re: [Rd] on the usage of do.call

2010-11-03 Thread Christophe Dutang
/11/2010 11:28 AM, Christophe Dutang wrote: Hello all, I don't know if it is possible, but I would like to use do.call in C code in my package. The function do.call is defined as do.call function (what, args, quote = FALSE, envir = parent.frame()) { if (!is.list(args)) stop

[Rd] on the usage of do.call

2010-11-02 Thread Christophe Dutang
Internal.h is not found when included in my C file. As this header is not listed in R-exts.pdf section 6.17, I think I cannot use the do_docall function. Does anyone face this problem? or have an idea on how to solve it? Thanks in advance Christophe -- Christophe DUTANG Ph. D. student

[Rd] on the optim function

2010-08-06 Thread Christophe Dutang
number? Kind regards Christophe -- Christophe Dutang Ph.D. student at ISFA, Lyon, France website: http://dutangc.free.fr __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] constrained optimization

2010-07-08 Thread Christophe Dutang
archive at Nabble.com. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Christophe Dutang Ph.D. student at ISFA, Lyon, France website: http://dutangc.free.fr __ R-devel@r

[Rd] constrained optimization

2010-07-07 Thread Christophe Dutang
-- Christophe DUTANG Ph. D. student at ISFA, Lyon, France [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] constrained optimization

2010-07-07 Thread Christophe Dutang
to find out which license I could use to distribute it, but I'm planning to make it publicly available this weekend. Jelmer On Wed, Jul 7, 2010 at 13:01, Christophe Dutang duta...@gmail.com wrote: Dear list, The task view on optimization does not reference a package for non linear

Re: [Rd] constrained optimization

2010-07-07 Thread Christophe Dutang
: Paul Gilbert [mailto:pgilb...@bank-banque-canada.ca] Sent: Wednesday, July 07, 2010 9:18 AM To: Ravi Varadhan; Christophe Dutang Subject: RE: [Rd] constrained optimization Ravi I think you are referring to the SQUAREM package. The development version is available at https://r-forge.r

[Rd] discrete-time survival model

2010-05-14 Thread Christophe Dutang
someone has already implemented this model? In the coming days, I plan to move my code on R-forge, so people can easily contribute. If you are interested please let me know. Thanks in advance Christophe -- Christophe Dutang Ph.D. student at ISFA, Lyon, France website: http://dutangc.free.fr

Re: [Rd] p-generalized normal distribution

2009-11-26 Thread Christophe Dutang
He already asked... And I don t know any pkg implementing this distribution... iPhone.fan Le 26 nov. 2009 à 21:22, Kjetil Halvorsen kjetilbrinchmannhalvor...@gmail.co m a écrit : There is a CRAN Task View for probability Distributions. take a look there! Kjetil On Tue, Nov 24, 2009 at

[Rd] Fwd: AR(2) modelling

2009-11-15 Thread Christophe Dutang
My email does not seem to receive any attention on R-help, so I forward it on R-devel if someone has already faced the problem. Thanks in advance Christophe Début du message réexpédié : De : Christophe Dutang duta...@gmail.com Date : 13 novembre 2009 23:30:14 HNEC À : r-h...@r-project.org

Re: [Rd] Fwd: AR(2) modelling

2009-11-15 Thread Christophe Dutang
, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 -- Christophe Dutang Ph.D. student at ISFA, Lyon, France website: http://dutangc.free.fr __ R

Re: [Rd] Fwd: AR(2) modelling

2009-11-15 Thread Christophe Dutang
see the results line by line and understand what it is doing at a very detailed level. On Sun, Nov 15, 2009 at 10:06 AM, Christophe Dutang duta...@gmail.com wrote: As you are sure of the accuracy of your code, why don't you tell me where is my mistake? Le 15 nov. 2009 à 12:03, Prof Brian Ripley

Re: [Rd] [R-SIG-Mac] rnorm.halton

2009-10-11 Thread Christophe Dutang
forgot to answer the second part of your e-mail -- see below. On Oct 10, 2009, at 12:04 PM, Christophe Dutang wrote: Hi all, I need to transform classic 32bit Fortran code to 64bit Fortran code, see the discussion [R-SIG-Mac] rnorm.halton. But I'm clearly a beginner in Fortran... Does

Re: [Rd] [R-SIG-Mac] rnorm.halton

2009-10-10 Thread Christophe Dutang
, Singapore 178899 | +65-6828-1932 ___ R-SIG-Mac mailing list r-sig-...@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac -- Christophe Dutang Ph.D. student at ISFA, Lyon, France website: http://dutangc.free.fr

Re: [Rd] user supplied random number generators

2009-07-30 Thread Christophe Dutang
__ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Christophe Dutang Ph.D. student at ISFA, Lyon, France website: http://dutangc.free.fr __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] rowSums, rowMean and rowCumSums?

2009-07-30 Thread Christophe Dutang
other arguments like na.rm or dims. Is there any hope to have this function in R? Christophe -- Christophe Dutang Ph.D. student at ISFA, Lyon, France website: http://dutangc.free.fr [[alternative HTML version deleted]] __ R-devel@r

[Rd] cran task view

2009-06-11 Thread Christophe Dutang
? Thanks in advance for any advice Christophe -- Christophe Dutang Ph. D. student at ISFA, Lyon, France website: http://dutangc.free.fr __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] statutes of R Foundation

2009-06-02 Thread Christophe Dutang
translation? Thanks in advance Christophe PS : Tex sources are here http://dutangc.free.fr/pub/statut%20R.tex -- Christophe Dutang Ph. D. student at ISFA, Lyon, France website: http://dutangc.free.fr __ R-devel@r-project.org mailing list https

[Rd] Vignettes with missing or empty \VignetteIndexEntry:

2009-05-10 Thread Christophe Dutang
in source and make files * checking for empty or unneeded directories * building 'probdistr_1.00.tar.gz' Does someone have an idea about this? Thanks in advance Christophe PS : files are available on R-forge -- Christophe Dutang Ph. D. student at ISFA, Lyon, France website: http

[Rd] Fwd: Vignettes with missing or empty \VignetteIndexEntry:

2009-05-10 Thread Christophe Dutang
... OK Début du message réexpédié : De : Christophe Dutang duta...@gmail.com Date : 10 mai 2009 11:52:17 HAEC À : r-devel@r-project.org Objet : Vignettes with missing or empty \VignetteIndexEntry: Hi, I have a problem when checking the package 'probdistr' (on probability distributions

Re: [Rd] License status of CRAN packages

2009-04-24 Thread Christophe Dutang
in the set. Perhaps, for the 2% of packages that want a different license a second repository could be made available. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Christophe Dutang Ph. D. student at ISFA

Re: [Rd] License question (RUnit)

2009-04-01 Thread Christophe Dutang
it is GPLv2 or any later version. Thanks in advance for your help, Best regards, Pierre [1] http://cran.r-project.org/web/packages/RUnit/index.html __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Christophe

Re: [Rd] dger_ in BLAS definition

2009-03-10 Thread Christophe Dutang
around this? Thanks [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Christophe Dutang Ph. D. student at ISFA, Lyon, France website: http://dutangc.free.fr

[Rd] R tutorial

2009-02-22 Thread Christophe Dutang
Dear all, I have just found a 'good' tutorial R for datamining. I think it should be on the contributed docs. http://cran.r-project.org/other-docs.html Here is the link http://www.liaad.up.pt/~ltorgo/DataMiningWithR/ What do you think? Kind regards Christophe -- Christophe Dutang Ph. D

Re: [Rd] R tutorial

2009-02-22 Thread Christophe Dutang
...@stat.uni-muenchen. de a écrit : On Sun, 22 Feb 2009 14:44:27 +0100, Christophe Dutang (CD) wrote: Dear all, I have just found a 'good' tutorial R for datamining. I think it should be on the contributed docs. http://cran.r-project.org/other-docs.html Here is the link http://www.liaad.up.pt

[Rd] percent concordant function

2008-10-29 Thread christophe dutang
Hi, I would like to compute ''SAS'' output statistic for logistic regression, namely the percent concordant, percent discordant, Sommer's D, Gamma, Tau-a...Actually, I'm very interested in percent concordant. Since the function 'cor' with method kendall compute the kendall's tau, I'm wondering

Re: [Rd] package config file for windows

2008-09-14 Thread Christophe Dutang
Thanks for your answer. You confirm what I fear, it is not easily possible to test for SSE2 support on windows. Can I assume there exists inttypes.h on windows platform? Thanks again Christophe Le 14 sept. 08 à 01:11, Duncan Murdoch a écrit : Christophe Dutang wrote: Hi, I'm

[Rd] package config file for windows

2008-09-13 Thread Christophe Dutang
Hi, I'm maintaining randtoolbox package on CRAN and I wonder how to do a windows config file? I need to test SSE2 instructions support as well as inttypes.h library check. Currently I use the trick of 'foreign' package, i.e. I have config.win file with cp -p src/config.h.win src/config.h

[Rd] non user-friendly error for chol2inv functions

2008-08-29 Thread christophe dutang
Hi, In function chol2inv with the option LINPACK set to false (default), it raises an error when the matrix is 1x1 matrix (i.e. just a real) saying 'a' must be a numeric matrix This error is raised by the underlying C function (modLa_chol2inv in function Lapack.c). Everything is normal, but I

Re: [Rd] standard errors for glm

2008-08-28 Thread christophe dutang
. On Wed, Aug 27, 2008 at 1:25 PM, christophe dutang wrote: Hi, I'm currently using biglm package to compute GLM outputs on a very large dataset. But no function computes standard erros of predictions. I look in what is done in R, namely in the function predict.glm.R in stats package

[Rd] standard errors for glm

2008-08-27 Thread christophe dutang
Hi, I'm currently using biglm package to compute GLM outputs on a very large dataset. But no function computes standard erros of predictions. I look in what is done in R, namely in the function predict.glm.R in stats package. In this function, we call predict.lm to compute the standard errors

Re: [Rd] [R] RNG Cycle and Duplication (PR#12540)

2008-08-17 Thread Christophe Dutang
Hi, If you want I can put RANARRAY in the 'randtoolbox' package? unless you want in R and not in a package? In randtoolbox (not the version on cran), I port SFMT and WELL generator respectively from Matsumoto and L'Ecuyer. It could be a good idea to add Knuth's code? Christophe Dutang

Re: [Rd] [R] aligned memory allocation in C

2008-08-14 Thread christophe dutang
Thanks for your remarks. According to http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/howto-compile.html, I need 16 bit aligned memory when using fill_array64. So I suppose I need 8 bit aligned memory. I will test what you advise me and will come back to R-devel list after. Thanks again

Re: [Rd] [R] aligned memory allocation in C

2008-08-13 Thread Christophe Dutang
Hi, You are completely right, the problem was not about what R_alloc returned but my use of the fill_array32. Now it works fine, but the block generation is longer due to a conversion to double after using fill_array32. I must underline the fact that I do not yet use sse2 support.