Skip to content

[R-pkg-devel] import with except(ion)

3 messages · Sebastian Meyer, Göran Broström

#
No need to reinvent the wheel. G?ran, you already use the "specials"
feature of terms.formula to find strata():
I think you can do the same for frailty(), for example:
Best regards,

	Sebastian


Am 31.10.20 um 14:30 schrieb Gabor Grothendieck:
#
Thanks!

G?ran
On 2020-11-02 11:09, Sebastian Meyer wrote:
#
Just a final observation: This can happen to anybody

-------------------------------------------------
 > lm(weight ~ feed, data = chickwts)

Call:
lm(formula = weight ~ feed, data = chickwts)

Coefficients:
   (Intercept)  feedhorsebean    feedlinseed   feedmeatmeal 
feedsoybean  feedsunflower
       323.583       -163.383       -104.833        -46.674 
-77.155          5.333

 > lm(weight ~ frailty(feed), data = chickwts)
Error in frailty(feed) : could not find function "frailty"

 > library(survival)
 > lm(weight ~ frailty(feed), data = chickwts)

Call:
lm(formula = weight ~ frailty(feed), data = chickwts)

Coefficients:
   (Intercept)  frailty(feed)
       232.165          8.147
-------------------------------------------------------

G,
On 2020-11-02 11:15, G?ran Brostr?m wrote: