Re: [R] get optim results into a model object

2009-04-07 Thread Ravi Varadhan
- -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Gene Leynes Sent: Tuesday, April 07, 2009 5:46 PM To: Ravi Varadhan Cc: r-help@r-project.org Subject: Re: [R] get optim results into a model object Very nice

Re: [R] get optim results into a model object

2009-04-07 Thread Gene Leynes
; Ravi. > > > > --- > > Ravi Varadhan, Ph.D. > > Assistant Professor, The Center on Aging and Health > > Division of Geriatric Medicine and Gerontology > > Johns Hopkins University > > Ph: (410) 502-2619 > > Fax: (410) 6

Re: [R] get optim results into a model object

2009-04-07 Thread Ravi Varadhan
gandhealth/People/Faculty/Varadhan.html -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Gene Leynes Sent: Tuesday, April 07, 2009 12:17 PM To: r-help@r-project.org Subject: [R

[R] get optim results into a model object

2009-04-07 Thread Gene Leynes
Hello all, I have an optimization routine that is giving me good results, but the results are not in the nice "model" format like "lm". How can I get optim results into a model so that I can use the clever 'fitted', 'residuals', and 'summary' functions? Using optim is the only way that I was able