[R] coxme: model simplification using LR-test?

Simon Tragust simon.tragust at biologie.uni-regensburg.de
Mon Feb 20 17:41:27 CET 2012


Many thanks for the suggestion.

I tried it already, but as I've never wrote a function, I had no luck. 
If it's not asked too much, maybe you or somebody else could help me 
getting the code for the function right.

Regards
Simon


Am 20/02/2012 14:52, schrieb Terry Therneau:
> Summary of the query: "update" does not work on a coxme object
>
>   I ran into this bug myself 2 days ago -- I rarely use update() so
> hadn't encountered it before.  The problem is that coxme breaks the
> formula into fixed and random portions, and this confuses the default
> method for formula.
>
> Solution: add the following function:
>    formula.coxme<- function(x, ...) x$call$formula
>
>   This method will be included in my next update of coxme.
>
> Terry Therneau
>
>


-- 
Simon Tragust
Animal Ecology I
University of Bayreuth



More information about the R-help mailing list