adschai at optonline.net
2007-Jun-11 01:33 UTC
[R] How do I obtain standard error of each estimated coefficients in polr
Hi, I obtained all the coefficients that I need from polr. However, I'm wondering how I can obtain the standard error of each estimated coefficient? I saved the Hessian and do something like summary(polrObj), I don't see any standard error like when doing regression using lm. Any help would be really appreciated. Thank you! - adschai
Spencer Graves
2007-Jun-13 03:29 UTC
[R] How do I obtain standard error of each estimated coefficients in polr
I'm confused:
Have you considered the 'examples' in the 'polr' help
file? The
first example ends "summary(house.plr)". The print of this summary
includes standard errors. If you want those numbers for subsequent
computations, you can try str(summary(house.plr)) or
names(summary(house.plr)). If you want to be more sophisticated,
class(summary(house.plr)) says it is "summary.polr". Then
methods(class="summary.polr") says there exists a function
'print.summary.polr', which is however, 'invisible'. If you
want to see
it, "getAnywhere('print.summary.polr')" will produce the code.
If this does NOT answer your question, please provide commented,
minimal, self-contained, reproducible code, as requested in the posting
guide "www.R-project.org/posting-guide.html".
Hope this helps.
Spencer Graves
adschai at optonline.net wrote:> Hi,
>
> I obtained all the coefficients that I need from polr. However, I'm
wondering how I can obtain the standard error of each estimated coefficient? I
saved the Hessian and do something like summary(polrObj), I don't see any
standard error like when doing regression using lm. Any help would be really
appreciated. Thank you!
>
> - adschai
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>