aledanda
2009-Jul-07 11:03 UTC
[R] Error in object$coefficients : $ operator not defined for this S4 class
Hallo, I received this error message while calculating the coefficents coef(fit, matrix=TRUE) Error in object$coefficients : $ operator not defined for this S4 class what is this? How can I solve it? Ale -- View this message in context: http://www.nabble.com/Error-in-object%24coefficients-%3A-%24-operator-not-defined-for-this-S4-class-tp24371231p24371231.html Sent from the R help mailing list archive at Nabble.com.
Ronggui Huang
2009-Jul-07 11:25 UTC
[R] Error in object$coefficients : $ operator not defined for this S4 class
What is fit in your example? Ronggui 2009/7/7 aledanda <danda.galli at gmail.com>:> > Hallo, > > I received this error message while calculating the coefficents > > coef(fit, matrix=TRUE) > > Error in object$coefficients : $ operator not defined for this S4 class > > what is this? How can I solve it? > > Ale > -- > View this message in context: http://www.nabble.com/Error-in-object%24coefficients-%3A-%24-operator-not-defined-for-this-S4-class-tp24371231p24371231.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. >-- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html
Ronggui Huang
2009-Jul-07 11:46 UTC
[R] Error in object$coefficients : $ operator not defined for this S4 class
I can not reproduce your problem with the latest version of VGAM. Besides, if you want to get the coef and std. error etc. you can use> summary(fit)@coef3Value Std. Error t value (Intercept):1 -1.020388 0.03215889 -31.72957 (Intercept):2 1.335657 0.04206706 31.75067 2009/7/7 Alessandra Galli <danda.galli at gmail.com>:> Sure, sorry, > > I am fitting with beta distribution: > > y= rbeta(n <- 1000, shape1=exp(0), shape2=exp(1)) > fit = vglm (y ~ 1, betaff, trace =TRUE) > > Thanks > > 2009/7/7 Ronggui Huang <ronggui.huang at gmail.com> >> >> What is fit in your example? >> >> Ronggui >> >> 2009/7/7 aledanda <danda.galli at gmail.com>: >> > >> > Hallo, >> > >> > I received this error message while calculating the coefficents >> > >> > coef(fit, matrix=TRUE) >> > >> > Error in object$coefficients : $ operator not defined for this S4 class >> > >> > what is this? How can I solve it? >> > >> > Ale >> > -- >> > View this message in context: >> > http://www.nabble.com/Error-in-object%24coefficients-%3A-%24-operator-not-defined-for-this-S4-class-tp24371231p24371231.html >> > Sent from the R help mailing list archive at Nabble.com. >> > >> > ______________________________________________ >> > 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. >> > >> >> >> >> -- >> HUANG Ronggui, Wincent >> PhD Candidate >> Dept of Public and Social Administration >> City University of Hong Kong >> Home page: http://asrr.r-forge.r-project.org/rghuang.html > > > > -- > Alessandra Galli > Mechelsestraat 155 /6 > 3000 Leuven > Belgium > T: +32 473 588179 > >-- HUANG Ronggui, Wincent PhD Candidate Dept of Public and Social Administration City University of Hong Kong Home page: http://asrr.r-forge.r-project.org/rghuang.html