glm with weights

107 views
Skip to first unread message

David van Leeuwen

unread,
Jan 9, 2015, 8:20:52 AM1/9/15
to julia...@googlegroups.com
Hi, 

Is is possible to specify weights for the data in `fit()` in general, or more specifically to what I am doing, in `glm(formula, data, Binomial(), LogitLink())`?

Thanks, 

---david

jock....@gmail.com

unread,
Feb 26, 2015, 10:44:57 PM2/26/15
to julia...@googlegroups.com
Hi David,

At glance, yes, use the keyword argument wts:

    glm(formula, data, Binomial(), LogitLink(), wts = my_weight_vector)

The results of a few quick examples matched those of R, but I haven't explored this fully.

Cheerio,
Jock
Reply all
Reply to author
Forward
0 new messages