Re: [R] Logistic/Cox regression: Parameter estimates directly from model matrix

2007-04-06 Thread Göran Broström
@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Göran Broström __ R-help

[R] Segfault in pure R code

2006-12-12 Thread Göran Broström
++ sessionInfo() R version 2.4.0 Patched (2006-10-29 r39744) i686-pc-linux-gnu -- Göran Broström __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] ifelse question

2006-12-12 Thread Göran Broström
}} __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Göran Broström

[R] Position as professor of statistics availabe

2006-11-10 Thread Göran Broström
application! Göran -- Göran Broström Head, Department of Statistics Umeå University, Umeå, Sweden __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

[R] Sweave, latex Warning

2006-10-07 Thread Göran Broström
problems, R or latex. How can I get rid of it? This is on linux (ubuntu), with R-2.4.0. -- Göran Broström __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Sweave, latex Warning

2006-10-07 Thread Göran Broström
On 10/7/06, Gregor Gorjanc [EMAIL PROTECTED] wrote: Göran Broström goran.brostrom at gmail.com writes: When I am using Sweave to produce reports I get a strange Warning from latex: LaTeX Warning: You have requested package `/usr/local/lib/R/share/texmf/Sweave

Re: [R] [R-pkgs] New version of glmmML

2006-08-22 Thread Göran Broström
On 8/21/06, Martin Maechler [EMAIL PROTECTED] wrote: Hi Göran, GB == Göran Broström [EMAIL PROTECTED] on Mon, 21 Aug 2006 11:12:49 +0200 writes: GB A new version, 0.65-1, of glmmML is now on CRAN. It is a major rewrite GB of the inner structures, so frequent updates (bug fixes

[R] [R-pkgs] New version of glmmML

2006-08-21 Thread Göran Broström
A new version, 0.65-1, of glmmML is now on CRAN. It is a major rewrite of the inner structures, so frequent updates (bug fixes) may be expected for some time. News: * The Laplace and adaptive Gauss-Hermite approximations to the log likelihood function are fully implemented. The Laplace method is

Re: [R] Weibull distribution

2006-08-03 Thread Göran Broström
On 7/21/06, Thomas Lumley [EMAIL PROTECTED] wrote: On Fri, 21 Jul 2006, Valentin Dimitrov wrote: Dear Leaf, I modified your code as follows: gamma.fun - function(mu,sd,start=100) { f.fn - function(alpha)

Re: [R] storing the estimates from lmer

2006-07-17 Thread Göran Broström
On 7/15/06, Douglas Bates [EMAIL PROTECTED] wrote: Hi Spencer, [] rant Some software, notably SAS PROC MIXED, does produce standard errors for the estimates of variances and covariances of random effects. In my opinion this is more harmful than helpful. The only use I can imagine for

[R] [R-pkgs] glmmML updated

2006-07-14 Thread Göran Broström
the 'conditional' approach. As usual, comments, and error and bug reports are welcome. Göran -- Göran Broström ___ R-packages mailing list [EMAIL PROTECTED] https://stat.ethz.ch/mailman/listinfo/r-packages

[R] [R-pkgs] New version of eha

2006-06-28 Thread Göran Broström
is possible. Göran -- Göran Broström, professor phone: 46 90 786 5223 Department of Statistics fax: 46 90 786 6614 Umeå University email: [EMAIL PROTECTED] SE-90187 Umeå, Swedenhttp://www.stat.umu.se/~goran.brostrom

[R] [R-pkgs] New version of glmmML (p-values!)

2006-06-28 Thread Göran Broström
intercepts for binomial and poisson models, (ii) the p-value is calculated thru bootstrapping (can be slow with large data sets). Göran -- Göran Broström, professor phone: 46 90 786 5223 Department of Statistics fax: 46 90 786 6614 Umeå University email: [EMAIL

Re: [R] Survival

2006-06-27 Thread Göran Broström
** [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broström

Re: [R] lmer and mixed effects logistic regression

2006-06-20 Thread Göran Broström
On 6/19/06, Rick Bilonick [EMAIL PROTECTED] wrote: On Sun, 2006-06-18 at 13:58 +0200, Douglas Bates wrote: If I understand correctly Rick it trying to fit a model with random effects on a binary response when there are either 1 or 2 observations per group. If you look at Rick's examples,

[R] Collapsing levels of a factor

2006-03-17 Thread Göran Broström
- factor(x) x [1] 1 2 b Levels: 1 2 b ? -- Göran Broström __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Sweave, mle and curve

2006-02-13 Thread Göran Broström
I am trying to write a lesson on maximum likelihood with Sweave. I get a surprising result with the following code, lec4.Snw: \documentclass[a4paper,12pt]{article} \usepackage[latin1]{inputenc} \title{Maximum likelihood} \author{Göran Broström} \begin{document} \maketitle fig=TRUE

Re: [R] Indentation in emacs

2006-01-17 Thread Göran Broström
-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broström __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

[R] Indentation in emacs

2006-01-12 Thread Göran Broström
such instance. ) But it doesn't work with R code (with C code it works). So what is missing? -- Göran Broström __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

Re: [R] Mean survival times

2005-11-17 Thread Göran Broström
-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broström __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] cox proportional-hazards regress for interval censor data

2005-10-01 Thread Göran Broström
to an event indicator, what relation do you mean it has to 'interval censor data'? You have to give more detail and be more precise in order to get a valuable answer. -- Göran Broström __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] [ESS] Indentation in R code

2005-09-27 Thread Göran Broström
On Mon, Sep 26, 2005 at 07:05:33PM +0200, Göran Broström wrote: On Mon, Sep 26, 2005 at 09:27:56AM +0200, Martin Maechler wrote: I'm crossposting to the ESS-help mailing list which is slightly more appropriate here. [This may be a rare case where crossposting seems to make much sense

Re: [R] [ESS] Indentation in R code

2005-09-26 Thread Göran Broström
On Mon, Sep 26, 2005 at 09:27:56AM +0200, Martin Maechler wrote: I'm crossposting to the ESS-help mailing list which is slightly more appropriate here. [This may be a rare case where crossposting seems to make much sense.] PD == Peter Dalgaard [EMAIL PROTECTED] on 25 Sep 2005

Re: [R] TeX distribution on Windows

2005-09-06 Thread Göran Broström
On Mon, Sep 05, 2005 at 06:55:26PM -0400, Duncan Murdoch wrote: Göran Broström wrote: I'm looking for a Windows distribution of TeX that works with R, after a few years' absence from Windows. On Duncan Murdoch's Rtools page fptex is still recommended, but it turns out that fptex is defunct

[R] TeX distribution on Windows

2005-09-05 Thread Göran Broström
is suggested? TUG (tug.org) recommends something called proTeXt, which is said to be based on MiKTeX, for Windows users. Since MikTeX could be used with R, that sounds like a good alternative. Any comments to that? -- Göran Broströmtel: +46 90 786 5223 Department of Statistics

Re: [R] TeX distribution on Windows

2005-09-05 Thread Göran Broström
On Tue, Sep 06, 2005 at 12:07:21AM +1000, Ko-Kang Kevin Wang wrote: Slightly off topic, if you want to get MikTeX working with Emacs and ESS, the Claus Dethlefsen has a wonderful web site (in fact, best website on this topic IMHO) http://www.math.auc.dk/~dethlef/Tips/ Thanks for that tips,

Re: [R] TeX distribution on Windows

2005-09-05 Thread Göran Broström
On Mon, Sep 05, 2005 at 01:55:39PM -0400, Peter Flom wrote: Goran wrote The consensus (so far) seems to be to stick to MikTeX and skip proTeXt. Thanks for all the input. Well, nothing against MikTeX, but ProteXt also works fine with R. I have made some studying; it seems as if proTeXt

Re: [R] Handling dates

2005-08-19 Thread Göran Broström
On Fri, Aug 19, 2005 at 01:35:45PM +0200, Peter Dalgaard wrote: Göran Broström [EMAIL PROTECTED] writes: I have a problem with some functions handling dates, in packages 'date' and 'survival' (they seem to be identical). For instance, from the documentation

Re: [R] linux compile options (64-bit)

2005-08-02 Thread Göran Broström
8330 CALL ZAXPY( N-I, ALPHA, A( I+1, I ), 1, TAU( I ), 1 ) Current language: auto; currently fortran --- [...] Göran -- Göran Broströmtel: +46 90 786 5223 Department of Statistics

Re: [R] linux compile options (64-bit)

2005-08-02 Thread Göran Broström
On Tue, Aug 02, 2005 at 09:33:45AM +0100, Prof Brian Ripley wrote: On Tue, 2 Aug 2005, Göran Broström wrote: [...] Incidentally, I have just tried building R on a Fujitsu Amilo amd64 with debian-amd64 (unstable) and ATLAS. Both 'make' and 'make check' worked without complaints with gcc-3.4.5

Re: [R] linux compile options (64-bit)

2005-08-02 Thread Göran Broström
On Tue, Aug 02, 2005 at 10:58:31AM +0100, Prof Brian Ripley wrote: The problems we are seeing with gcc4 are mainly (but not entirely) with gfortran: it seems not quite ready for production use. -4.0.1 is already a considerable improvement over -4.0.0. There is another project (www.g95.org)

Re: [R] Lack of independence in anova()

2005-07-07 Thread Göran Broström
On Thu, Jul 07, 2005 at 11:18:09AM +0100, Ted Harding wrote: My first reaction to Duncan's example was Touché -- with apologies to Göran for suspecting on over-trivial example! No need to apologize; that was of course my first reaction to Thomas' statement. I had not thought long enough

Re: [R] Lack of independence in anova()

2005-07-06 Thread Göran Broström
On Wed, Jul 06, 2005 at 10:06:45AM -0700, Thomas Lumley wrote: (...) If X, Y, and Z are independent and Z takes on more than one value then X/Z and Y/Z can't be independent. Not really true. I can produce a counterexample on request (admittedly quite trivial though). Göran Broström

Re: [R] Weibull survival modeling with covariate

2005-06-09 Thread Göran Broström
/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broströmtel: +46 90 786 5223 Professor and Head Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se

[R] Re: [Rd] F90

2005-03-26 Thread Göran Broström
://stat.ethz.ch/mailman/listinfo/r-devel -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

[R] Books on survival analysis and R/S

2005-03-24 Thread Göran Broström
elementary. I have a vague memory saying that such books exist, but I cannot find any for the moment. Any suggestions are welcome. Thanks, Göran -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University

Re: [R] Hazard function or cumulative Hazard function in R

2005-03-22 Thread Göran Broström
__ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broströmtel: +46 90 786 5223 Department

[R] Sweave and connections

2005-02-07 Thread Göran Broström
. (I really have no idea of what is going on!) This is R : Version 2.1.0 Under development (unstable) (2005-01-19) on Debian. -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http

Re: [R] GLM function with poisson distribution

2005-01-26 Thread Göran Broström
this is common knowledge. -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

Re: [R] GLM function with poisson distribution

2005-01-26 Thread Göran Broström
On Wed, Jan 26, 2005 at 11:01:03AM +0100, Peter Dalgaard wrote: Göran Broström [EMAIL PROTECTED] writes: Try it with b=c(rep(0,8),rmultinom(1,24,rep(1/8,8))) This is the conditional distribution, given the sufficient statistic. Yes (and that was of course the point). I

Re: [R] GLM function with poisson distribution

2005-01-26 Thread Göran Broström
On Wed, Jan 26, 2005 at 02:03:25PM +0100, Peter Dalgaard wrote: Göran Broström [EMAIL PROTECTED] writes: On Wed, Jan 26, 2005 at 11:01:03AM +0100, Peter Dalgaard wrote: Göran Broström [EMAIL PROTECTED] writes: Try it with b=c(rep(0,8),rmultinom(1,24,rep(1/8,8

[R] tapply and names

2005-01-25 Thread Göran Broström
(although it has one, at least in R-2.1.0, 2005-01-19). Another aspect is that this code relies on m.id being numeric; I would have to change it if the type of m.id changes to, eg, character. So, question: Is there a better way of doing this? -- Göran Broströmtel: +46 90 786 5223

Re: [R] GLM function with poisson distribution

2005-01-25 Thread Göran Broström
ratio test gives a p-value of 8.017e-09, while the Wald p-value is 1 ! -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail

Re: [R] tapply and names

2005-01-25 Thread Göran Broström
On Tue, Jan 25, 2005 at 10:43:24AM -0500, Liaw, Andy wrote: From: Göran Broström I have a data frame containing children, with variables 'year' = birth year, and 'm.id' = mother's id number. Let's assume that all the births of each mother is represented in the data frame. Now I

Re: [R] survreg: fitting different location parameters

2005-01-24 Thread Göran Broström
the likelood of the model under HA: location parameters are not equal (i.e. each stress level has its slope and intercept). How can I do this? Stratify on stress level. -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå

Re: [R] (no subject)

2005-01-20 Thread Göran Broström
using coxph(non parametric model) and survreg(parametric model) ? One way of avoiding this problem is to fit the Weibull model with 'weibreg' in the package eha. -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University

Re: [R] How can I simulate Pareto distribution in R?

2005-01-09 Thread Göran Broström
to the uniform distribution thru F(X) = U ~ uniform(0, 1), where X is Pareto with cdf F. Solve for X and you have just reinvented the inverse method of generating random numbers from a cdf F. Remigijus made that explicit for you. -- Göran Broströmtel: +46 90 786 5223

Re: [R] glm fit with no intercept

2005-01-07 Thread Göran Broström
~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broström

Re: [R] vector

2004-12-27 Thread Göran Broström
! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broström

Re: [R] subsetting a data.frame to the 'unique' of a column

2004-12-23 Thread Göran Broström
for that value. I don't mind which of the rows now..) something like this, however, this gives me the complete df. df[df$colname %in% unique(df$colname),] or this, which doesnt work df[df$colname == unique(df$colname),] Use 'duplicated': df[!duplicated(df$colname), ] -- Göran Broström

[R] read.spss: unrecognized record type

2004-12-07 Thread Göran Broström
that I got what I should have. Thanks, Göran And, I'm using R-2.0.1 on Debian testing (from source). -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå

Re: [R] Weibull survival regression

2004-11-23 Thread Göran Broström
-- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

Re: [R] integer

2004-11-02 Thread Göran Broström
can't have a mix of integer and non-integer elements. With a list it's a different story. Göran -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå

Re: [R][OT] Latex Integration question

2004-10-29 Thread Göran Broström
{equation*} 3. Join a latex mailing list? Göran -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

Re: [R] Survreg with gamma distribution

2004-10-19 Thread Göran Broström
On Mon, Oct 18, 2004 at 12:57:09PM -0700, Thomas Lumley wrote: On Mon, 18 Oct 2004, Göran Broström wrote: On Mon, Oct 18, 2004 at 08:48:40AM -0700, Thomas Lumley wrote: However, all the distributions in survreg are location-scale families, But only after a time

Re: [R] Survreg with gamma distribution

2004-10-18 Thread Göran Broström
.) Göran -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

Re: [R] Adding factor variable to a CoxPH

2004-10-09 Thread Göran Broström
will that work? ?factor ?as.factor Thanks Neil __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broström

Re: [R] more on apply on data frame

2004-08-21 Thread Göran Broström
] is a data frame of length 4; iris[, 5] is a vector of length 150. You probably need to loop over the four first columns and apply tapply(!) four times, but I'm sure there is a smarter way. Others will tell you. Göran -- Göran Broströmtel: +46 90 786 5223 Department

Re: [R] A question about external time-dependent covariates in co x model

2004-08-19 Thread Göran Broström
__ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46

[R] Revert a factor to its numeric values

2004-08-18 Thread Göran Broström
Warning message: NAs introduced by coercion What am I doing wrong? This is R-1.9.1, Linux (debian installation) Another question: I have a factor with four levels, which I want to collapse to two. How do I do it in the simplest possible way? Thanks, Göran -- Göran Broström

Re: [R] Revert a factor to its numeric values

2004-08-18 Thread Göran Broström
On Wed, Aug 18, 2004 at 09:30:50AM +0100, Prof Brian Ripley wrote: On Wed, 18 Aug 2004, Göran Broström wrote: I'm trying a recommendation on the help page for 'factor': x - c(1, 2, 1, 2) x - factor(x, labels = c(one, two)) x [1] one two one two Levels: one two as.numeric

Re: [R] analysis of life tables

2004-08-16 Thread Göran Broström
be Poisson regression with riskset size as an offset. -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

Re: [R] GLMM(..., family=binomial(link=cloglog))?

2004-06-09 Thread Göran Broström
effect 'sd' in the two lme4 runs! Note further how close to each other the corresponding estimates for the second run of lme4 and of glmmML are. [...] Göran -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University

[R] dropterm and frailty

2004-06-03 Thread Göran Broström
in general? -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

Re: [R] Error in using coxph()

2004-05-16 Thread Göran Broström
guide! http://www.R-project.org/posting-guide.html -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

Re: [R] Explaining Survival difference between Stata and R

2004-05-13 Thread Göran Broström
is going on there. I use only standard linpack routines (found in R) for solving linear equations, and matrix inversion at the end. I think 'coxph' has its own optimizing routines. Peter D. explained why scaling can be a problem. Göran [...] -- Göran Broströmtel: +46 90 786 5223

Re: [R] Explaining Survival difference between Stata and R

2004-05-12 Thread Göran Broström
, though. Efron's method is quite robust. (You might check if there are any differences with 'breslow') Best, Göran [...] -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se

Re: [R] sas vs r

2004-04-28 Thread Göran Broström
this helps, Henric __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broströmtel: +46 90 786 5223

Re: [R] R hang-up using lm

2004-04-28 Thread Göran Broström
On Wed, Apr 28, 2004 at 11:18:38AM +0200, Göran Broström wrote: On Wed, Apr 28, 2004 at 11:46:51AM +0300, Renaud Lancelot wrote: Martin Maechler a écrit : kjetil == kjetil [EMAIL PROTECTED] on Tue, 27 Apr 2004 19:19:59 -0400 writes: kjetil On 27 Apr 2004 at 16:46, Raubertas

model.matrix (Re: [R] R hang-up using lm)

2004-04-28 Thread Göran Broström
On Wed, Apr 28, 2004 at 12:59:54PM +0200, Göran Broström wrote: On Wed, Apr 28, 2004 at 11:18:38AM +0200, Göran Broström wrote: On Wed, Apr 28, 2004 at 11:46:51AM +0300, Renaud Lancelot wrote: Martin Maechler a écrit : kjetil == kjetil [EMAIL PROTECTED] on Tue, 27 Apr 2004 19:19:59

[R] install.packages and warnings

2004-04-21 Thread Göran Broström
) Delete downloaded files (y/N)? y warnings() NULL --- Where did the warnings go? (R-1.9.0, Debian testing/unstable) Göran -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University

Re: [R] difference between coxph and cph

2004-04-21 Thread Göran Broström
-project.org/posting-guide.html -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

Re: [R] difference between coxph and cph

2004-04-21 Thread Göran Broström
:-( [...] The Design package by default computes inter-quartile-range effects. [...] Interesting idea... is this a common procedure in biostatistics? -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University

Re: [R] mvtnorm problems (II)

2004-04-14 Thread Göran Broström
/contrib/1.7/PACKAGES' ^^^ [...] Try upgrading to R 1.9.0 first (it seems as if 'mvtnorm' is missing in 1.7) -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå

Re: [R] Question on Data Simulation

2004-04-02 Thread Göran Broström
) } A word of warning: Not well tested; I only noticed that the censoring fraction seemed to be correct in some experiments. Göran -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786

[R] Underscore and ESS

2004-04-02 Thread Göran Broström
(ESS 5.1.24), my '_' are changed to ' - '! What can I do? Upgrade to a beta version of ESS? (I want to continue using ESS!) Göran -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http

Re: [R] New utility: sas2r

2004-04-01 Thread Göran Broström
for Matlab? I think there was a group at U.of Apraphulia working on it. Peter, I think it was Aprilfoolia. -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187

Re: [R] variance estimator for the cumulative incidence function

2004-02-26 Thread Göran Broström
-- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED] __ [EMAIL PROTECTED

Re: [R] memory limitation with Fortran interface

2004-01-19 Thread Göran Broström
the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

Re: [R] estimation of lambda and gamma with std errors for a weibull model

2004-01-14 Thread Göran Broström
://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187

Re: [R] estimation of lambda and gamma with std errors for a weibull model

2004-01-14 Thread Göran Broström
On Wed, Jan 14, 2004 at 10:45:56PM +0100, Göran Broström wrote: On Wed, Jan 14, 2004 at 09:10:51PM +0100, Fredrik Lundgren wrote: Dear R experts, How should lambda and gamma (with std.errors) be calculated for a weibull model with age as an independent predictor? I have assumed

Re: [R] GLMM (lme4) vs. glmmPQL output

2004-01-10 Thread Göran Broström
of Wisconsin - Madisonhttp://www.stat.wisc.edu/~bates/ __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Göran Broström

[R] [R-pkgs] New version of eha

2004-01-08 Thread Göran Broström
changed to conform with R-1.8.0 (and later). - As usual, comments and bug reports are welcome! -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb

Re: [R] Survival, Kaplan-Meier, left truncation

2004-01-07 Thread Göran Broström
it out) You can also use 'plot.Surv' in package 'eha' (for plotting). -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail

Re: [R] force fixed format

2004-01-01 Thread Göran Broström
'formatC': formatC(p) [1] 0.0001 -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

rsync (was: [R] MASS package and lda)

2003-12-31 Thread Göran Broström
and tried this advice, but got rsync not found. I searched CRAN, and found links to 'rsync.r-project.org' and 'www.rsync.org', none of which worked. Where and how do I get 'rsync'? -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614

Re: rsync (was: [R] MASS package and lda)

2003-12-31 Thread Göran Broström
On Wed, Dec 31, 2003 at 11:02:36AM +0100, Göran Broström wrote: On Wed, Dec 31, 2003 at 07:40:23AM +, Prof Brian Ripley wrote: [...] lda is still in Venables and Ripley's MASS. Perhaps you forgot to rsync up the recommended packages? (Run tools/rsync-recommended in the top level

[R] Manova

2003-12-18 Thread Göran Broström
4.5e-5). What is the 'right' way of doing this in R? -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

Re: [R] Manova

2003-12-18 Thread Göran Broström
On Thu, Dec 18, 2003 at 12:04:31PM +0100, Peter Dalgaard wrote: Göran Broström [EMAIL PROTECTED] writes: Dear R-helpers, In a data set I got from a medical doctor there are six treatment groups and (about) 5 bivariate responses in each group. Using 'manova', it is easy to see

[R] Error in model.frame

2003-12-10 Thread Göran Broström
:length(x)) 0.5 0.8 and identical(1:4, c(1:4)) [1] TRUE Should I report this as a bug? Göran -- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna

Re: [R] Error in model.frame

2003-12-10 Thread Göran Broström
On 0, Uwe Ligges [EMAIL PROTECTED] wrote: Göran Broström wrote: I recently ran into the following: x - c(1,2,4,3) lm(x ~ 1:length(x)) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ but lm(x ~ c(1:length(x

Re: [R] rbind question

2003-07-08 Thread Göran Broström
3 [5,]123 G. Thanks, David __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help -- --- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90

[R] namespaces not available

2003-06-20 Thread Göran Broström
Seems to work. What is happening? Göran --- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187

Re: [R] install pls.pcr package

2003-06-17 Thread Göran Broström
On Wed, 18 Jun 2003, Dowkiw, Arnaud wrote: How do you install a package from CRAN ? I want to install pls.pcr, so I have downloaded pls.pcr_0.1.1.tar.gz but when I try to install it using the install package(s) from local zip file(s) option it says :

[R] new package: eha

2003-06-16 Thread Göran Broström
. Göran --- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187 Umeå, Sweden e-mail: [EMAIL PROTECTED

Re: [R] Ordering long vectors

2003-06-09 Thread Göran Broström
On Mon, 9 Jun 2003, Prof Brian Ripley wrote: On Sun, 8 Jun 2003, Göran Broström wrote: On Sun, 8 Jun 2003, Thomas Lumley wrote: On Sat, 7 Jun 2003, [ISO-8859-1] Göran Broström wrote: I need to order a long vector of integers with rather few unique values. This is very

Re: [R] Ordering long vectors

2003-06-08 Thread Göran Broström
On Sat, 7 Jun 2003, Göran Broström wrote: I need to order a long vector of integers with rather few unique values. This is very slow: x - sample(rep(c(1:10), 5)) system.time(ord - order(x)) [1] 189.18 0.09 190.48 0.00 0.00 But with no ties y - sample(50

Re: [R] Ordering long vectors

2003-06-08 Thread Göran Broström
On Sun, 8 Jun 2003, Thomas Lumley wrote: On Sat, 7 Jun 2003, [ISO-8859-1] Göran Broström wrote: I need to order a long vector of integers with rather few unique values. This is very slow: I think the culprit is src/main/sort.c: orderVector1 /* Shell sort isn't stable

[R] install-packages

2003-05-30 Thread Göran Broström
or with 1.7.0? I have seen the reports on failures with bundles, but 'eha' is not a bundle. Thanks, Göran --- Göran Broströmtel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Umeå University http://www.stat.umu.se/egna/gb/ SE-90187

Re: [R] install-packages

2003-05-30 Thread Göran Broström
On Thu, 29 May 2003, John Fox wrote: Dear Goran, I've noticed this problem with recent versions of R when I've zipped an R package for Windows using a zip utility different from the recommended Info-Zip. If you build the package under Windows with the --binary switch, then a usable zip

  1   2   >