Hello, I have a question about the formula and the user defined function:
I can do following:
###Case 1:
> clotting <- data.frame(
+ u = c(5,10,15,20,30,40,60,80,100),
+ lot1 = c(118,58,42,35,27,25,21,19,18),
+ lot2 = c(69,35,26,21,18,16,13,12,12))
> g1=glm(lot1 ~ log(u) + poly(u,1), d
alls to be used for
> prediction:
>> attr(g2$terms, "variables")
>list(lot1, log(u), xpoly(u, 1))
> > attr(g2$terms, "predvars")
> list(lot1, log(u), xpoly(u, 1, coefs = list(alpha = 40, norm2 = c(1,
> 9, 8850
>
>
>
>
like makepredictcall.scale() and scale() for an
>> example:
>> scale has optional arguments 'center' and 'scale' that it returns as
>> attributes
>> and makepredictcall.scale adds those to the call to scale that it is
>> given.
>> Thus when you pre
3 matches
Mail list logo