Re: [R] Binomial Reponses

About this list Date view Thread view Subject view Author view

Peter Dalgaard BSA (p.dalgaard@biostat.ku.dk)
22 Oct 1999 15:12:00 +0200



R.E.Darnell@newcastle.ac.uk (R.E. Darnell) writes:

> I understand that there are two ways to define the response for
> binomial case in R(S).
> 1) As a vector of p's for which the number of trials is assumed
> to be 1
> 2) As a 2 column matrix, the first being the number of sucesses, the
> second being the number of failures.

3) as a vector of p's, the number of trials given in the weights=
   argument

> Two questions I have concern the 2nd case.
>
> Does the model.response function convert the number of successes
> into a propn? I couldn't see that it did.

Nope. That's not it's job. It just pulls out the relevant bits of the
model frame.
 
> and how is the denominator included as a (prior) weight?

Have a look at the initialize expression as defined in binomial().

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b3 on Tue 04 Jan 2000 - 13:34:00 EST