Skip to content
Prev 385477 / 398506 Next

How to obtain individual log-likelihood value from glm?

Dear John

I think that you misunderstand the use of the weights argument to glm() 
for a binomial GLM. From ?glm: "For a binomial GLM prior weights are 
used to give the number of trials when the response is the proportion of 
successes." That is, in this case y should be the observed proportion of 
successes (i.e., between 0 and 1) and the weights are integers giving 
the number of trials for each binomial observation.

I hope this helps,
  John

John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
web: https://socialsciences.mcmaster.ca/jfox/
On 2020-08-28 9:28 p.m., John Smith wrote:
Message-ID: <3b6c0844-4aff-49bd-6291-09dee4e4862f@mcmaster.ca>
In-Reply-To: <6048_1598664524_07T1Shrm005013_CAFyG=WPFvZDnox3yTG07O__6KzPojpX6HfPkdyn=GSf5h=RrXg@mail.gmail.com>