[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)
Sometimes you want to compute the physical size of a plot based on data. In R itself this is no problem. But is there a way to compute the values of height and width in S-weave, say: graph,fig=TRUE,height=xx,width=yy= where xx and yy are computed and not physically written in the document?

[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)
I run Windows XP. and in a command window I get: c:\stat\r\R-2.13.1\bin\i386\Rcmd Sweave Lexis.rnw Error in length(arg) : 'arg' is missing Calls: Anonymous Execution halted AND: c:\stat\r\R-2.13.1\bin\i386\Rcmd Sweave --help Error in length(arg) : 'arg' is missing Calls: Anonymous Execution

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)
I am updating the Epi package. I added functions named pc.points and pc.matpoints. Erroneously I wrote pc.plot and pc.matplot in the NAMESPACE file and of course got an error from Rcmd check. So I corrected the NAMESPACE file, but I still get from r-check: * install options are ' --no-html'

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

2010-01-12 Thread BXC (Bendix Carstensen)
I have noted that the later versions of Rcmd check cleans out the directory pkg.Rcheck so that only package-manual.log and package-manual.pdf are left. Formerly the package-manual.tex was around too --- very handy for various purposes. Is there a way to generate the .tex - version of the manual

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

2009-04-27 Thread BXC (Bendix Carstensen)
In version 2.8.1, running Rcmd check on the package foo would leave the file foo-manual.tex in the folder foo.Rcheck. But as of 2.9.0 only foo-manual.pdf and foo-manual.log are there. Is this intentional? Anyway it is inconvenient, because I would occasionally like to include the manual at the

[R] WinBUGS with R

2008-08-25 Thread BXC (Bendix Carstensen)
Artimon, It seems that you have got the data wrong: The data structure is a list of 4 characters: list(y,X,n,m) [[1]] [1] y [[2]] [1] X [[3]] [1] n [[4]] [1] m And that is hardly what you want, presumably you meant list(y=y,X=X,n=n,m=m) ?? __

[R] FW: Installing BRugs

2008-07-29 Thread BXC (Bendix Carstensen)
To: BXC (Bendix Carstensen) Subject: utils:::menuInstallPkgs() trying URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.7/BRugs_0.4-2.zip' Content type 'application/zip' length 3399130 bytes (3.2 Mb) opened URL downloaded 3.1 Mb Error in gzfile(file, r) : cannot open the connection

[R] Figure environment and includegraphics options from Sweave

2008-05-18 Thread BXC (Bendix Carstensen)
Tha handy thinb about the fig=TRUE option in Sweave is that you do not have to bother about filenames and starting and stpping the device. I want the the resulting LaTeX to look as: \begin{Schunk} \begin{Sinput} x - seq(-2 * pi, 2 * pi, 0.1) plot(x, cos(x), type = l, lwd = 4) \end{Sinput}

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)
Course in STATISTICAL PRACTICE IN EPIDEMIOLOGY USING R Tartu, Estonia, Wednesday 28 May to Monday 2 June 2008. Aimed at young statisticians and epidemiologists wishing to broaden their epidemiological skills, in particular with respect to practical

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

2008-01-17 Thread BXC (Bendix Carstensen)
A new major upgrade of the Epi package for Epidemiological data analysis has been put on CRAN, it is now at version 1.0.7. It contains an entirely new way of representing follow-up data on multiple timescales and multiple states. See the function Lexis(). Plus a lot of other useful stuff for