Re: [R] Column names of model.matrix's output with contrast.arg

2024-06-17 Thread Christophe Dutang
sing when coding is +1 for male and -1 for > female, so that the gender difference is twice the coefficient.) > > -pd > >> On 14 Jun 2024, at 08:12 , Christophe Dutang wrote: >> >> Dear list, >> >> Changing the default contrasts used in glm() makes

[R] Column names of model.matrix's output with contrast.arg

2024-06-13 Thread Christophe Dutang
ontrasts = list("outcome"="contr.sum")) glm.D95 <- glm(counts ~ outcome + treatment, family = poisson(), contrasts = list("outcome"="contr.helmert")) coef(glm.D93) coef(glm.D94) coef(glm.D95) #check linear predictor cbind(X3 %*% coef(glm.D93), predict(g

[R] Fitting Mixed Distributions in the fitdistrplus package

2020-10-23 Thread Christophe Dutang
Dear Charles, Please, when you have questions about fitdistrplus, contact directly the authors of the package and not R-help. When fitting non « standard » distributions with fitdistrplus, you should define by yourself the density and the cumulative distribution functions, or load a package wh

Re: [R] Fitdistrplus and Parameter Constraints

2017-05-23 Thread Christophe Dutang
library(fitdistrplus) fitdist(x, "beta2", start=list(shape=1/2)) x <- rbeta(1000, .3, .3) fitdist(x, "beta2", start=list(shape=1/2), optim.method="L-BFGS-B", lower=1e-2) Regards, Christophe --- Christophe Dutang LMM, UdM, Le Mans, F

Re: [R] linking vignettes in a man page

2016-06-30 Thread Christophe Dutang
? I spent quite a lot of time searching how to do this. Regards, Christophe --- Christophe Dutang LMM, UdM, Le Mans, France web: http://dutangc.free.fr <http://dutangc.free.fr/> > Le 29 juin 2016 � 23:27, Duncan Murdoch a �crit : > > On 29/

[R] linking vignettes in a man page

2016-06-29 Thread Christophe Dutang
Kind regards, Christophe --- Christophe Dutang LMM, UdM, Le Mans, France web: http://dutangc.free.fr __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help

[R] on the output of constrOptim()

2016-04-13 Thread Christophe Dutang
2.4 --- Christophe Dutang LMM, UdM, Le Mans, France web: http://dutangc.free.fr <http://dutangc.free.fr/> [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

[R] Find the dataset(s) that contain(s) non-ASCII characters

2016-04-04 Thread Christophe Dutang
lcome. Regards, Christophe > sessionInfo() R version 3.2.4 (2016-03-10) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.10.5 (Yosemite) locale: [1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8 attached base packages: [1] stats graphics grDevic

Re: [R] "Nash Equilibrium"

2010-12-04 Thread Christophe Dutang
riatric Medicine and Gerontology > School of Medicine > Johns Hopkins University > > Ph. (410) 502-2619 > email: rvarad...@jhmi.edu > > > - Original Message - > From: Christophe Dutang > Date: Saturday, December 4, 2010 5:09 am > Subject: Re: [R

Re: [R] "Nash Equilibrium"

2010-12-04 Thread Christophe Dutang
ristophe PS: send me an email if you have problems with the functions. Le 4 déc. 2010 à 00:25, Ravi Varadhan a écrit : > I think Christophe Dutang is writing a package for generalized Nash > Equilibria models called "GNE". > > I am cc'ing him here. > > I d

Re: [R] Debye function

2010-10-04 Thread Christophe Dutang
> may not be what you want. >> >> >>2. If it's otherwise available in R, it's very well concealed. >> >> >> Spencer >> >> >> On 10/4/2010 8:56 AM, Christophe Dutang wrote: >>> >>> Dear lis

[R] Debye function

2010-10-04 Thread Christophe Dutang
Dear list, Is there another package than gsl* where the Debye function (of first order) is implemented? Google only finds the gsl package. Thanks in advance Christophe * page 12 of reference manual of gsl. http://cran.r-project.org/web/packages/gsl/gsl.pdf -- Christophe DUTANG Ph. D. student

Re: [R] extended Kalman filter for survival data

2010-06-12 Thread Christophe Dutang
g implements "only" dynamic GLM. > > > > That's why I'm asking on this list, if someone knows a package for > this > > implementation? > > > > Thanks in advance > > > > Christophe > > > > > > > > PS: the pseudo vignette of

[R] extended Kalman filter for survival data

2010-05-03 Thread christophe dutang
e for this implementation? Thanks in advance Christophe PS: the pseudo vignette of the sspir pkg can be found here http://www.jstatsoft.org/v16/i01/paper . -- Christophe DUTANG Ph. D. student at ISFA [[alternative HTML version deleted]] _

[R] the hat ^ in regular expression

2010-02-08 Thread christophe dutang
telling me the character is not recognized but I don't know how to solve the problem... Warning messages: 1: '\^' is an unrecognized escape in a character string 2: unrecognized escape removed from "\^" 3: '\^' is an unrecognized escape in a character string 4: un

[R] [R-pkgs] new version of randtoolbox

2009-12-21 Thread Christophe Dutang
-forge.r-project.org/projects/rmetrics/ . We invite you to take a look at the NEWS section to know the latest development http://cran.r-project.org/web/packages/randtoolbox/NEWS . Christophe Dutang and Petr Savicky * for a license issue, the package has been splitted into 2 packages

[R] AR(2) modelling

2009-11-13 Thread Christophe Dutang
coef2ols <- reslm$coefficients["myserieminus2"] resarols <- ar(myserie, method="ols", order.max=2, aic=FALSE) cat("\t\tmanual ols\t\tar ols\n") cat("first coef", coef1ols,"\t", resarols$ar[1], "\n") cat("first coef", coef2o

Re: [R] [R-SIG-Finance] Fast optimizer

2009-10-30 Thread Christophe Dutang
mmented, minimal, self-contained, reproducible code. ___ r-sig-fina...@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. -- If you want to post, subscribe first. -- Christophe Dutang Ph.

[R] attach

2009-10-13 Thread Christophe Dutang
using eval on a expression which depends on the columns of inputdata. Is it better not to use attach function? Thanks in advance Christophe -- Christophe Dutang Ph.D. student at ISFA, Lyon, France website: http://dutangc.free.fr __ R-help@r-projec

[R] windows system file aux

2009-10-07 Thread christophe dutang
me aux or aux.*. If you try to create a text file on windows aux.txt, it says you could not do it. Is it possible for the R GUI to catch this message? or just raise an error? Thanks in advance Christophe -- Christophe DUTANG Ph. D. student at ISFA [[alternative HTML ve

[R] try function

2009-10-05 Thread christophe dutang
is counter intuitive. what is the truth? Thanks in advance Christophe PS : I'm using R 2.9.2 on win XP -- Christophe DUTANG Ph. D. student at ISFA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.et

Re: [R] Fwd: generic methods - in particular the summary function

2009-09-27 Thread Christophe Dutang
Thanks for your answer. Yes, I use now a proper NAMESPACE with function declared correctly. Christophe Le 27 sept. 2009 à 19:16, David Winsemius a écrit : On Sep 27, 2009, at 12:52 PM, Christophe Dutang wrote: Nobody wants to answer my question... is there something stupid in it? I

[R] Fwd: generic methods - in particular the summary function

2009-09-27 Thread Christophe Dutang
Nobody wants to answer my question... is there something stupid in it? Début du message réexpédié : > De : Christophe Dutang > Date : 19 septembre 2009 11:26:51 HAEC > À : r-help@r-project.org > Objet : generic methods - in particular the summary function > > Hi all, > &g

[R] generic methods - in particular the summary function

2009-09-19 Thread Christophe Dutang
.fitdist is not exported in the NAMESPACE, then we must use declare it with S3method. Thanks in advance Christophe -- Christophe Dutang Ph.D. student at ISFA, Lyon, France website: http://dutangc.free.fr [[alternative HTML version deleted]]

Re: [R] thousands separator

2009-07-21 Thread Christophe Dutang
onversion > for (i in col2cvt){ > x[[i]] <- as.numeric(gsub(",", "", x[[i]])) > } > > Replace ',' with ' ' for blanks. > > On Tue, Jul 21, 2009 at 3:34 PM, christophe > dutang wrote: >> Dear useRs, >> >>

[R] thousands separator

2009-07-21 Thread christophe dutang
this in a csv file? Thanks in advance Christophe -- Christophe DUTANG Ph. D. student at ISFA [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] drawing arrows

2009-05-15 Thread Christophe Dutang
> your circles and arrows in 1 step. > > -- > Gregory (Greg) L. Snow Ph.D. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-b

[R] drawing arrows

2009-05-15 Thread christophe dutang
raw arrows at the edge of circles drawn by the 'symbols' function. Maybe there is already a dedicated function for this? Any help is appreciated. Christophe -- Christophe DUTANG Ph. D. student at ISFA [[alternative HTML version deleted]] ___

Re: [R] legend with small colored boxes

2009-04-29 Thread Christophe Dutang
I thought I have tried to pass a vector of "colors" and that it did not work.. Thanks for all! Christophe Le 29 avr. 09 à 12:16, Jim Lemon a écrit : Christophe Dutang wrote: Hi all, I tried to a nice legend with small boxes filled with the colors used for the plots. But i

[R] legend with small colored boxes

2009-04-29 Thread Christophe Dutang
ack","blue"), fill=TRUE) How could I specify the colors? the argument col.box is the color of the whole legend box... Thanks in advance Christophe PS : I work with R 2.9.0. -- Christophe Dutang Ph. D. student at ISFA, Lyon, France website: http://dut

Re: [R] problem with symbol function

2009-04-29 Thread Christophe Dutang
Based on your solution, could we not fix this issue for the symbol function? Le 27 avr. 09 à 23:47, Duncan Murdoch a écrit : On 27/04/2009 5:23 PM, Christophe Dutang wrote: so it could be a limitation of graphics on windows? It's not graphics on Windows, but it appears to be a limit

Re: [R] downloading r 2.9.0

2009-04-28 Thread christophe dutang
with the Austrian, it works fine... I should have think before sending an email to r help.. Thanks 2009/4/28 Paul Hiemstra > christophe dutang wrote: > >> Hi all, >> >> I try to download R 2.9.0 from French mirrors... but the download stops >> mysteriously at 1

Re: [R] problem with symbol function

2009-04-27 Thread Christophe Dutang
ymbol function To: Joshua Wiley Cc: r-help@r-project.org, Christophe Dutang On 27/04/2009 4:29 PM, Joshua Wiley wrote: Hi Christophe, I am able to plot dashed circles on Windows. I'm afraid I do not have any suggestions for you. What happens when you try to plot it on Windows? Were

Re: [R] problem with symbol function

2009-04-27 Thread Christophe Dutang
You might double check that since it works on mac. > > > Joshua Wiley > > > > Original message >> Date: Mon, 27 Apr 2009 22:58:11 +0200 >> From: Christophe Dutang >> Subject: Re: [R] problem with symbol function >> To: Joshua Wiley >> C

Re: [R] problem with symbol function

2009-04-27 Thread Christophe Dutang
the resultant file - but if you save as .ps or .pdf you > get a dashed outer circle. > > > I don't know why. > > Andy. R 2.8.1 > > > > andydol...@gmail.com > > > 2009/4/27 Christophe Dutang > what is your service pack version? > > at home

Re: [R] problem with symbol function

2009-04-27 Thread Christophe Dutang
ouble downloading 2.9.0, are you sure everything downloaded and installed properly? There have been some questions about transitioning to the new build going around. Joshua Wiley Original message Date: Mon, 27 Apr 2009 22:45:26 +0200 From: Christophe Dutang Subject: Re: [R] pr

Re: [R] problem with symbol function

2009-04-27 Thread Christophe Dutang
Wiley Original message Date: Mon, 27 Apr 2009 22:15:53 +0200 From: r-help-boun...@r-project.org (on behalf of Christophe Dutang >) Subject: [R] problem with symbol function To: r-help@r-project.org Hi all, I use the symbol functions to draw circles. But the argument lty does not

Re: [R] problem with symbol function

2009-04-27 Thread Christophe Dutang
ry to plot it on Windows? Joshua Wiley Original message Date: Mon, 27 Apr 2009 22:15:53 +0200 From: r-help-boun...@r-project.org (on behalf of Christophe Dutang >) Subject: [R] problem with symbol function To: r-help@r-project.org Hi all, I use the symbol functions to draw circ

[R] problem with symbol function

2009-04-27 Thread Christophe Dutang
ymbols(0, 0, add = TRUE, circles = 1, inches = 2, fg="black", lty="dashed") The second circle should be drawn with dash... it works on my macbook but on my PC. I use R 2.9.0 on windows xp home and mac os 10.5. Does anyone have this problem? is it a limitation of windows? th

[R] downloading r 2.9.0

2009-04-27 Thread christophe dutang
Hi all, I try to download R 2.9.0 from French mirrors... but the download stops mysteriously at 13.2 MB of the 65MB file. I get this both on my mac and my PC... does anyone face this problem? Christophe -- Christophe DUTANG Ph. D. student at ISFA [[alternative HTML version deleted

[R] plot with 2 y axes

2009-04-21 Thread Christophe Dutang
good solution, but I wonder if there exists an easier solution to plot two series that have units in R? or in a contributed packages? Thanks in advance Christophe -- Christophe Dutang Ph. D. student at ISFA, Lyon, France website: http://dutangc.free.fr

Re: [R] date operations

2008-12-03 Thread Christophe Dutang
Thanks a lot Envoyé de mon iPhone Le 3 déc. 08 à 00:39, "jim holtman" <[EMAIL PROTECTED]> a écrit : If you want to do the addition, 'unclass' the variable: alpha2+4 [1] "2008-12-25" alpha2 + unclass(alpha1) [1] "2009-02-15" On Tue, Dec 2

[R] date operations

2008-12-02 Thread Christophe Dutang
Hi all, I'm dealing with dates in R (2.7.2), but some basic operations raise a warning. Incompatible methods ("+.Date", "Ops.difftime") for "+" I saw this topic in this mailing list, but I do not understand what to do... cf. https://stat.ethz.ch/pipermail/r-help/2008-June/165842.html Do I

[R] cran task view on probability distributions

2008-11-16 Thread Christophe Dutang
/ctv/?root=ctv ). Any remarks, suggestions and comments are welcome, especially those of package maintainers. Kind regards Christophe Dutang __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] package building problem on windows

2008-08-17 Thread Christophe Dutang
th including spaces.) The documentation is that manual, not 'Murdoch's page', whatever that is. On Sun, 17 Aug 2008, Christophe Dutang wrote: Hi, I'm trying to compile the package biglm, but when I build it with R CMD build biglm, it failed : C:\LOCAL\c-dutan

[R] package building problem on windows

2008-08-17 Thread Christophe Dutang
Hi, I'm trying to compile the package biglm, but when I build it with R CMD build biglm, it failed : C:\LOCAL\c-dutang\code\R\biglm2>R CMD build biglm * checking for file 'biglm/DESCRIPTION' ... OK * preparing 'biglm': * checking DESCRIPTION meta-information ...C:/DOCUME~1/c-dutang/Local: C

Re: [R] aligned memory allocation in C

2008-08-13 Thread Christophe Dutang
Yes, it seems a good idea but your two questions are also good questions! Le 13 août 08 à 04:52, Jeffrey Horner a écrit : Christophe Dutang1 wrote: Hi, I'm currently R porting SF Mersenne Twister algorithm of Matsumoto and Saito. To get the full power of their code, I want to use their f

Re: [R] system time - windows specific problem

2008-07-19 Thread Christophe Dutang
for quasi random generation and use it only for pseudo random generation as in Rmetric packages. (but the problem with the seed still persists). Thanks again. Christophe Le 19 juil. 08 à 12:32, Duncan Murdoch a écrit : On 18/07/2008 5:26 PM, Christophe Dutang wrote: Hi all, I'm current

[R] system time - windows specific problem

2008-07-18 Thread Christophe Dutang
Hi all, I'm currently implementing quasi random generation (torus) on R (package randtoolbox available on CRAN). Even if it is not a great idea, I decided to use the machine time to initiate the seed. So when the seed is not specified by the user, the pkg uses the time machine time. Henc