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@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@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.

______________________________________________
R-help@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.

Reply via email to