Re: [R] Extracting Coefficients and Such from mle2 Output

2009-02-01 Thread Bill.Venables
boun...@r-project.org] On Behalf Of Ben Bolker Sent: Monday, 2 February 2009 10:18 AM To: r-h...@stat.math.ethz.ch Subject: Re: [R] Extracting Coefficients and Such from mle2 Output Marc Schwartz comcast.net> writes: > > on 02/01/2009 10:45 AM David Winsemius wrote: > > Let me

Re: [R] Extracting Coefficients and Such from mle2 Output

2009-02-01 Thread Ben Bolker
Marc Schwartz comcast.net> writes: > > on 02/01/2009 10:45 AM David Winsemius wrote: > > Let me admit at this point that I am not really sure that S4 classes is > > the correct classification of such "@"-using extraction processes. The > > documentation refers to "formal methods" and I don't ye

Re: [R] Extracting Coefficients and Such from mle2 Output

2009-02-01 Thread Marc Schwartz
on 02/01/2009 10:45 AM David Winsemius wrote: > Let me admit at this point that I am not really sure that S4 classes is > the correct classification of such "@"-using extraction processes. The > documentation refers to "formal methods" and I don't yet have enough > knowledge to know that how tight

Re: [R] Extracting Coefficients and Such from mle2 Output

2009-02-01 Thread David Winsemius
Let me admit at this point that I am not really sure that S4 classes is the correct classification of such "@"-using extraction processes. The documentation refers to "formal methods" and I don't yet have enough knowledge to know that how tightly slots and formal classes are linked with S4

Re: [R] Extracting Coefficients and Such from mle2 Output

2009-02-01 Thread David Winsemius
As Ben Bolker's reply hints, our difficulty was that because we were insufficiently knowledgeable regarding working with S4 objects such as "a" and summary(a) object. Both mle2 and summary(a) produce S4 objects which need a different set of extraction technology. Although I did not know

Re: [R] Extracting Coefficients and Such from mle2 Output

2009-02-01 Thread Ben Bolker
Tom La Bone gforcecable.com> writes: > > > The mle2 function (bbmle library) gives an example something like the > following in its help page. How do I access the coefficients, standard > errors, etc in the summary of "a"? > example(mle2) coef(summary(fit1)) Ben Bolker ___

Re: [R] Extracting Coefficients and Such from mle2 Output

2009-02-01 Thread BooBoo
I had asked this question once before about a function in the NADA package, and you provided this neat response: [Begin quote] An approach that may yield somewhat more self-documenting code would be to examine either the fit object or the summary object with str and then to access results by

Re: [R] Extracting Coefficients and Such from mle2 Output

2009-01-31 Thread David Winsemius
On Jan 31, 2009, at 9:13 PM, Tom La Bone wrote: The mle2 function (bbmle library) gives an example something like the following in its help page. How do I access the coefficients, standard errors, etc in the summary of "a"? ?coef ?vcov eeep. Further comment on "etc" not possible at this tim

[R] Extracting Coefficients and Such from mle2 Output

2009-01-31 Thread Tom La Bone
The mle2 function (bbmle library) gives an example something like the following in its help page. How do I access the coefficients, standard errors, etc in the summary of "a"? > x <- 0:10 > y <- c(26, 17, 13, 12, 20, 5, 9, 8, 5, 4, 8) > LL <- function(ymax=15, xhalf=6) + -sum(stats::dpois(y, l