search for: carstensen

Displaying 20 results from an estimated 130 matches for "carstensen".

2008 Jul 29
2
FW: Installing BRugs
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 ______________________________________________ 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) bxc at steno.dk http://www.biostat.ku.dk/~bxc -----Original Message----- From: ACJS (Ande...
2018 Mar 07
3
Names of variables needed in newdata for predict.glm
...+ 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, Bendix Carstensen Senior Statistician Steno Diabetes Center Clinical Epidemiology Niels Steensens Vej 2-4 DK-2820 Gentofte, Denmark b at bxc.dk bendix.carstensen at regionh.dk http://BendixCarstensen.com ________________________________ Denne e-mail indeholder fortrolig information. Hvis du ikke er den rette mod...
2018 Mar 31
1
Names of variables needed in newdata for predict.glm
...rnorm(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_grt at yahoo.fr> Sendt: 8. marts 2018 06:26 Til: Bendix Carstensen; r-help at r-project.org Emne: Re: [R] Names of variables needed in newdata for predict.glm Hi, Some try: > names(mi$xlevels) [1] "f" > all.vars(mi$formula) [1] "D" "x" "f" "Y" > names(mx$xlevels) [1] "f" > all.vars(mx$fo...
2018 Mar 08
0
Names of variables needed in newdata for predict.glm
...all.vars(mi$formula) [1] "D" "x" "f" "Y" > names(mx$xlevels) [1] "f" > all.vars(mx$formula) [1] "D" "x" "f" When offset is indicated out of the formula, it does not work... Marc Le 07/03/2018 ? 06:20, Bendix Carstensen a ?crit?: > I would like to extract the names, modes [numeric/factor] and levels > of variables needed in a data frame supplied as newdata= argument to > predict.glm() > > Here is a small example illustrating my troubles; what I want from > (both of) the glm objects is the vector...
2004 May 24
2
Month names
...;februar" "marts" "april" "maj" "juni" "juli" "august" "september" [10] "oktober" "november" "december" Surely someone on the list can beat that in elegance? Bendix Carstensen ---------------------- Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 30 75 87 38 fax: +45 44 43 07 06 bxc at steno.dk www.biostat.ku.dk/~bxc
2000 Feb 08
2
Windows metafile
...d titles on axes are in the file. No axes or lines of any kind. (I look at the file by inserting it in Word, which is what I need for my client). Variations over the theme by using type="l" or "p", does not change anything. Am I missing a point? Or is this a known bug? Bendix Carstensen \\\|/// \\ - - / ( @ @ ) +------------------o00o-(_)-o00o-------------------------+ | Bendix Carstensen tel: +45 44 43 87 38 | | Senior Statistician SDC: +45 44 43 90 42 | | Steno Diabetes Center...
2008 May 18
1
Figure environment and includegraphics options from Sweave
...ronment. 1) Is there a way to do this without writing the figure environment manually? 2) If not, is there a way to get the generated 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-4 DK-2820 Gentofte Denmark +45 44 43 87 38 (direct) +45 30 75 87 38 (mobile) bxc at steno.dk http://www.biostat.ku.dk/~bxc This e-mail (including any attachments) is...
2005 Feb 17
1
How to get interction terms first in a model
...the constant variable w is how I got to have the two spline terms as "proper" intercept terms. Is there another way to do this, or is it a featur of the model formulae that lower order terms appear before higher order terms regardless of the order they are specified in the model? Bendix Carstensen ---------------------- Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 30 75 87 38 fax: +45 44 43 07 06 bxc at steno.dk www.biostat.ku.dk/~bxc
2008 Nov 24
1
FW: read.ssd
Did not seem to reach Saikat DebRoy, this might be the forum. Bendix -----Original Message----- From: BXC (Bendix Carstensen) Sent: 24. november 2008 15:00 To: 'saikat at stat.wisc.edu'; 'stvjc at channing.harvard.edu' Subject: read.ssd It's always annoyed me that that read.ssd crashed on datasets with long variable names, but the other day a collegue of mine pointed out to me the SAS-option validv...
2004 Nov 03
1
Building a package under WIN2000 / rw2.0
...Having made a few changes here and there in some of the functions I transferred them one at a time to a new folder and tried to build it there. The probelm seems to be that once I exceed 5 functions in the package the above error appears, with 5 or fewer functions it works OK. Any ideas? Bendix Carstensen ---------------------- Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 30 75 87 38 fax: +45 44 43 07 06 bxc at steno.dk www.biostat.ku.dk/~bxc
2004 Nov 03
1
Building a package under WIN2000 / rw2.0
...Having made a few changes here and there in some of the functions I transferred them one at a time to a new folder and tried to build it there. The probelm seems to be that once I exceed 5 functions in the package the above error appears, with 5 or fewer functions it works OK. Any ideas? Bendix Carstensen ---------------------- Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 30 75 87 38 fax: +45 44 43 07 06 bxc at steno.dk www.biostat.ku.dk/~bxc
2007 Jun 11
2
Rounding?
...23 svn rev 41293 language R version.string R version 2.5.0 (2007-04-23) My machine runs Windows NT. Is this intended or just a Windows facility? ______________________________________________ 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) +45 44 43 73 13 (fax) bxc at steno.dk http://www.biostat.ku.dk/~bxc This e-mail (including any attachments) is intended for the ...{{dropped}}
2004 Dec 22
0
relevel expansion suggestion
...idemiology. It is fully compatible with the existing relevel (it actually contains the relevel code almost verbatim as a subset), but it has the extra functionality of combining levels. I put the .R and .Rd files in http://biostat.ku.dk/~bxc/R/suggest/ so please help yourself if you like. Bendix Carstensen -----Original Message----- From: BXC (Bendix Carstensen) Sent: Wednesday, December 22, 2004 1:38 PM To: 'anne.piotet@m-td.com'; 'R list' Subject: RE: [R] ordering levels: I was wrong I was wrong about needing the Relevel from the Lexis package. The default verson of relevel doe...
2009 Apr 27
2
The .tex version of the manual in foo.Rcheck
...ual.log are there. Is this intentional? Anyway it is inconvenient, because I would occasionally like to include the manual 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 30 75 87 38 (mobile) bxc at steno.dk http://www.biostat.ku.dk/~bxc www.steno.dk This e-mail (including any attachments) is intended for ...{{dropped:8}}
2004 Jan 08
3
Strange parametrization in polr
...,0.6907) - 0.5663922 ), 1) ) [1] 0.2568335 0.2742035 0.4689630 > # Line 5: > diff( c(0,tigol( c(-0.4961,0.6907) - 0.5663922 + 0.5723552 ), 1) ) [1] 0.3798613 0.2875862 0.3325525 > ------------------------------------------------------------------------ ----- ---------------------- Bendix Carstensen Senior Statistician Steno Diabetes Center Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 30 75 87 38 fax: +45 44 43 07 06 bxc at steno.dk www.biostat.ku.dk/~bxc
2001 Sep 05
3
Bug in ftable?? (Was: Two-way tables of data, etc)
...ttr( tp, "class" ) <- "table" > ftable( tp ) Error in cbind(...) : number of rows of matrices must match (see arg 2) # But still they seem to have similar attributes (except for the naming) attributes( tb ) attributes( tp ) Is this a bug or a facility of ftable ? Bendix Carstensen ---------------------- Bendix Carstensen Senior Statistician Steno Diabetes Centre Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 28 25 87 38 fax: +45 44 43 73 13 bxc at novo.dk www.biostat.ku.dk/~bxc ---------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-....
2001 Sep 05
3
Bug in ftable?? (Was: Two-way tables of data, etc)
...ttr( tp, "class" ) <- "table" > ftable( tp ) Error in cbind(...) : number of rows of matrices must match (see arg 2) # But still they seem to have similar attributes (except for the naming) attributes( tb ) attributes( tp ) Is this a bug or a facility of ftable ? Bendix Carstensen ---------------------- Bendix Carstensen Senior Statistician Steno Diabetes Centre Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 28 25 87 38 fax: +45 44 43 73 13 bxc at novo.dk www.biostat.ku.dk/~bxc ---------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-....
2004 Feb 14
2
converting data to date format
Dear all, I import my data from a csv-file containing one row with date-entries. How can I tell R to treat this data as dates? I've tried to bring it in character-format (as.charachter()) followed by as.POSIXlt() but I get an error message, that the character string is not in a standard unambiguous format, although the date is of format yyyy-mm-dd (what is standard format according to R
2007 Apr 24
4
Size of an object in workspace
Hi folks, Is there a function to show the size of an R object? eg. in Kbytes? Couple months ago Bendix Carstensen posted this marvelous little function lls(), which shows all objects in the current workspace by mode, class and 'size'. This is a wonderful enhancement to the build-in ls() already and I now have it sourced in my Rprofile.site at startup. The only drawback is, 'size' is just the...
2000 Sep 07
6
Writing a tabel in LaTeX-format
I have a vague recollection of seeing a R-function that will output a table or matix in a format suitable for the tabular enviroment in LaTeX. But I cannot find it. Any hints? Bendix ---------------------- Bendix Carstensen Senior Statistician Steno Diabetes Centre Niels Steensens Vej 2 DK-2820 Gentofte Denmark tel: +45 44 43 87 38 mob: +45 28 25 87 38 fax: +45 44 43 73 13 bxc at novo.dk www.biostat.ku.dk/~bxc ---------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-hel...