[R] Extract values from a predict() result... how?

2010-02-15 Thread Jay
Hello, silly question I suppose, but somehow I can't manage to extract the probabilities from a glm.predict() result: str(res) Named num [1:9] 0.00814 0.01877 0.025 0.02941 0.03563 ... - attr(*, names)= chr [1:9] 1 2 3 4 ... I got from: # A Gamma example, from McCullagh Nelder (1989, pp.

Re: [R] Extract values from a predict() result... how?

2010-02-15 Thread David Winsemius
On Feb 15, 2010, at 4:35 PM, Jay wrote: Hello, silly question I suppose, but somehow I can't manage to extract the probabilities from a glm.predict() result: str(res) Named num [1:9] 0.00814 0.01877 0.025 0.02941 0.03563 ... - attr(*, names)= chr [1:9] 1 2 3 4 ... I got from: # A Gamma