Skip to content
Prev 6239 / 12125 Next

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

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: