Re: [R] A question regarding RFreak

From: James Shaw <shawjw_at_gmail.com>
Date: Tue, 19 Apr 2011 12:17:24 -0500

Dr. Ligges:

Thank you for the prompt reply. I am sorry that I did not include my code. I submitted my post as I was running to a meeting and did not have time to provide more detail. Given the information you provided, I was able to access the coefficient vector.

--
Jim


2011/4/19 Uwe Ligges <ligges_at_statistik.tu-dortmund.de>:

>
>
> On 18.04.2011 23:41, James Shaw wrote:
>>
>> I am using robreg.evol (part of the RFreak package) to fit models via
>> least trimmed squares (LTS) regression and am encountering the
>> following error message when attempting to access the coefficients:
>>
>> Error in fit1$coef : $ operator not defined for this S4 class.
>
>
> Where is the reproducible code that the posting guide asks you to send with
> your question?
>
>
>> It appears to me that robreg.evol is not saving the estimates in a
>> form that can be accessed following estimation.  According to
>> documentation for RFreak, the function is supposed to return an object
>> of class "evolreg" that contains the parameter estimates.
>
> It does, ask R to
>
> str(object)
>
> and you will see that it is an S4 object that contains a slot coefficients
> and you can get those by
>
> object_at_coefficients
>
> the package maintainer of the package may want to provide a coef() method or
> something similar.
>
>
>
>> I am
>> uncertain whether the error I am receiving is related to to the
>> version of R being used.  I receive the error message when using R
>> version 2.12.1.  When using the latest version of R, i.e., 2.13, I
>> receive a Java error message and cannot get RFreak to work at all.
>
> You have not even sent the error message, nor the versions of Java, and the
> involved packages.
>
> Uwe Ligges
>
>
>
>> --
>> Jim
>>
>>
>> James W. Shaw, Ph.D., Pharm.D., M.P.H.
>> Assistant Professor
>> Department of Pharmacy Administration
>> College of Pharmacy
>> University of Illinois at Chicago
>> 833 South Wood Street, M/C 871, Room 266
>> Chicago, IL 60612
>> Tel.: 312-355-5666
>> Fax: 312-996-0868
>> Mobile Tel.: 215-852-3045
>>
>> ______________________________________________
>> R-help_at_r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
-- James W. Shaw, Ph.D., Pharm.D., M.P.H. Assistant Professor Department of Pharmacy Administration College of Pharmacy University of Illinois at Chicago 833 South Wood Street, M/C 871, Room 266 Chicago, IL 60612 Tel.: 312-355-5666 Fax: 312-996-0868 Mobile Tel.: 215-852-3045 ______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Received on Tue 19 Apr 2011 - 17:20:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 19 Apr 2011 - 17:50:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive