Re: [R] cox.zph

2021-04-01 Thread Bendix Carstensen
) me, published by OUP a few months ago. b.r. Bendix Carstensen Senior Statistician Steno Diabetes Center Copenhagen Clinical Epidemiology Niels Steensens Vej 2-4 DK-2820 Gentofte Denmark tel: +45 30 91 29 61 b...@bxc.dk bendix.carsten...@regionh.dk http://BendixCarstensen.com

[R] ggpubr: order of non-numeric x-axis items

2019-10-27 Thread Bendix Carstensen
In the Epi package is a function, Relevel (note the capital R), that does general reordering and combination of factor levels. Bendix Carstensen maintainer of Epi __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch

Re: [R] xtabs ignores l.h.s. rows with NA in just one column - bug or facility?

2019-04-25 Thread Bendix Carstensen
To: Bendix Carstensen; r-help@r-project.org Subject: RE: xtabs ignores l.h.s. rows with NA in just one column - bug or facility? The documentation describes how to control the behavior of missing values: > xtabs( cbind(xx,yy) ~ ff, addNA=TRUE) ff xx yy a 17 b 55 66 But of course, now

[R] xtabs ignores l.h.s. rows with NA in just one column - bug or facility?

2019-04-25 Thread Bendix Carstensen
, but it appears that xtabs does something like complete.cases() on the l.h.s. before summing. At least this should be in the description. Am I missing something here? Bendix Carstensen Steno Diabetes Center Copenhagen Denne e-mail indeholder fortrolig informati

Re: [R] Names of variables needed in newdata for predict.glm

2018-03-31 Thread Bendix Carstensen
orm(100) x <- rnorm(100) k <- -1:1 ml <- lm( y ~ bs(x,knots=k) ) mg <- glm( y ~ bs(x,knots=k) ) all.vars(ml$terms) all.vars(mg$terms) all.vars(mg$formula) Fra: Marc Girondot <marc_...@yahoo.fr> Sendt: 8. marts 2018 06:26 Til: Bendix Cars

[R] Names of variables needed in newdata for predict.glm

2018-03-06 Thread Bendix Carstensen
+ f:I(x^2) , offset=log(Y) , family=poisson, data=dd) mi <- glm( D ~ ns(x,knots=1:2,Bo=c(0,5)) + f:I(x^2) + offset(log(Y)), family=poisson, data=dd) attr(mx$terms,"dataClasses") attr(mi$terms,"dataClasses") mi$xlevels mx$xlevels ...so far not quite there. Regards, B

[R] Splines with more restrictions

2015-11-04 Thread BXC (Bendix Carstensen)
I would like to generate a natural spline where the slope beyond the last knot (the right outer knot) is constrained to be 0. Is that available in some package around? _ Bendix Carstensen Senior Statistician Steno Diabetes Center Clinical Epidemiology Niels Steensens Vej 2-4

[R] Computing plot size in Sweave

2012-02-20 Thread BXC (Bendix Carstensen)
? Bendix __ Bendix Carstensen Senior Statistician Epidemiology Steno Diabetes Center A/S Niels Steensens Vej 2-4 DK-2820 Gentofte Denmark +45 44 43 87 38 (direct) +45 30 75 87 38 (mobile) b...@steno.dkhttp://BendixCarstensen.com www.steno.dk This e-mail

[R] Code for a plot of a DNA double helix?

2012-01-25 Thread BXC (Bendix Carstensen)
Does anyone have a piece of R-code that draws a nice picture of a (piece of a) DNA double helix? B.r. Bendix _ Bendix Carstensen Senior Statistician Epidemiology Steno Diabetes Center A/S Niels Steensens Vej 2-4 DK-2820 Gentofte Denmark +45 44 43 87

[R] Sweave in 2.13.1

2011-07-16 Thread BXC (Bendix Carstensen)
, but not for any other command. Is this a bug or some new facility I overlooked? Best regards, Bendix _ Bendix Carstensen Senior Statistician Steno Diabetes Center A/S Niels Steensens Vej 2-4 DK-2820 Gentofte Denmark +45 44 43 87 38 (direct) +45 30 75 87 38

Re: [R] as.Date

2011-02-09 Thread BXC (Bendix Carstensen)
. februar 2011 11:48 To: Philipp Pagel Cc: BXC (Bendix Carstensen); r-help@r-project.org Subject: Re: [R] as.Date And I am hereby reporting this bug to the package maintainer. On Wed, 9 Feb 2011, Philipp Pagel wrote: On Wed, Feb 09, 2011 at 08:44:30AM +0100, Valeri Fabio wrote: Hello

[R] Fishy error with NAMESPACE when checking package

2010-04-17 Thread BXC (Bendix Carstensen)
R version.string R version 2.10.1 (2009-12-14) Best regards, Bendix ___ Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2-4 DK-2820 Gentofte Denmark +45 44 43 87 38 (direct) +45 30 75 87 38

[R] The TeX-source for the package manual.

2010-01-12 Thread BXC (Bendix Carstensen)
for a package? br. Bendix __ Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2-4 DK-2820 Gentofte Denmark +45 44 43 87 38 (direct) +45 30 75 87 38 (mobile) b...@steno.dk http://www.biostat.ku.dk/~bxc www.steno.dk

[R] The .tex version of the manual in foo.Rcheck

2009-04-27 Thread BXC (Bendix Carstensen)
at the end of a set of exercises, and this was a convenient file to \input with a few select %'s added. br. Bendix ___ Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2-4 DK-2820 Gentofte Denmark +45 44 43 87 38 (direct) +45

[R] WinBUGS with R

2008-08-25 Thread BXC (Bendix Carstensen)
) ?? __ Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2-4 DK-2820 Gentofte Denmark +45 44 43 87 38 (direct) +45 30 75 87 38 (mobile) [EMAIL PROTECTED] http://www.biostat.ku.dk/~bxc Uwe Ligges ligges at statistik.tu-dortmund.de Fri Aug 22 19:15:17 CEST 2008 artimon wrote

[R] FW: Installing BRugs

2008-07-29 Thread BXC (Bendix Carstensen)
A funny thing happened when I wanted a student of mine to install Brugs. Using the InstallPackages in the windows version, firts gives an erro, but trying again works flawlessly. R version is 2.7.0 on WinXP. Any explanation? Bendix Carstensen

[R] Figure environment and includegraphics options from Sweave

2008-05-18 Thread BXC (Bendix Carstensen)
filename of the plot, or to explicitly give it in the .rnw file? The point of course being to avoid to start and stop the graphics driver explicitly? Best, Bendix Carstensen __ Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2

Re: [R] Figure environment and includegraphics options from Sweave

2008-05-18 Thread BXC (Bendix Carstensen)
: Charilaos Skiadas [mailto:[EMAIL PROTECTED] Sent: 18. maj 2008 17:08 To: BXC (Bendix Carstensen) Cc: r-help@r-project.org Subject: Re: [R] Figure environment and includegraphics options from Sweave On May 18, 2008, at 10:41 AM, BXC (Bendix Carstensen) wrote: Tha handy thinb about

[R] Course: STATISTICAL PRACTICE IN EPIDEMIOLOGY USING R

2008-02-24 Thread BXC (Bendix Carstensen)
homepage: www.biostat.ku.dk/~bxc/SPE -- Krista Fischer, University of Tartu, Estonia Esa Läärä, University of Oulu, Finland Bendix Carstensen, Steno Diabetes Center, Denmark (Organizers) __ R-help@r

[R] [R-pkgs] New version of Epi package out (1.0.7)

2008-01-17 Thread BXC (Bendix Carstensen)
for epidemiological analysis. See more on the package homepage, www.biostat.ku.dk/~bxc/Epi Note also that there will be a course 28 May - 2 June in Estonia, see www.biostat.ku.dk/~bxc/SPE. Bendix Carstensen Epi package maintainer __ Bendix Carstensen Senior