[R] A question regarding RFreak
shawjw at gmail.com
Tue Apr 19 19:17:24 CEST 2011
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.
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
> 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
>> 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
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
James W. Shaw, Ph.D., Pharm.D., M.P.H.
Department of Pharmacy Administration
College of Pharmacy
University of Illinois at Chicago
833 South Wood Street, M/C 871, Room 266
Chicago, IL 60612
Mobile Tel.: 215-852-3045
More information about the R-help