[R] Re: Bangdiwala

Sundar Dorai-Raj sundar.dorai-raj at PDF.COM
Fri Sep 10 17:34:51 CEST 2004



Martyn Sherriff wrote:

> I am new to R and would be grateful if somebody could tell me how to access
> the Bangdiwala statistic after an agreement plot.
> Thanks,
> Martyn
> 

Martyn,
   Since you didn't say so, I have to guess you are using package:vcd? 
If so, then ?agreementplot says:

<quote>
Value

Invisibly returned, a list with components

Bangdiwala 	the unweighted agreement strength statistic
Bangdiwala.Weighted 	the weighted statistic
weights 	the weigtht vector used.
</quote>

So you should be able to do the following:

library(vcd)
data(SexualFun)
ap <- agreementplot(t(SexualFun))

ap$Bangdiwala

(Please read the posting guide.)

--sundar




More information about the R-help mailing list