Re: [R] retrieving weights from a polr object

2008-09-28 Thread John Fox
threw me off). Thank you very much, John > -Original Message- > From: Yihui Xie [mailto:[EMAIL PROTECTED] > Sent: September-28-08 1:33 AM > To: John Fox > Cc: r-help@r-project.org > Subject: Re: [R] retrieving weights from a polr object > > Hi John, > &g

Re: [R] retrieving weights from a polr object

2008-09-27 Thread Yihui Xie
Hi John, Aren't they in the component 'model' of the fitted object? ## > options(contrasts = c("contr.treatment", "contr.poly")) > house.plr <- polr(Sat ~ Infl + Type + Cont, weights = Freq, data = housing) > head(house.plr$model) Sat Infl Type Cont (weights) 1LowLow Tower Low

[R] retrieving weights from a polr object

2008-09-27 Thread John Fox
Dear list members, The polr() function in the MASS package takes an optional weights argument for case weights. Is there any way to retrieve the case weights from the fitted "polr" object? Examining both the object and the code, I don't see how this can be done, but perhaps I've missed something.