楼主: 子衿1219
1821 1

[问答] GLM程序问答 [推广有奖]

  • 1关注
  • 4粉丝

讲师

70%

还不是VIP/贵宾

-

威望
0
论坛币
60 个
通用积分
1.0023
学术水平
2 点
热心指数
0 点
信用等级
1 点
经验
13521 点
帖子
326
精华
0
在线时间
431 小时
注册时间
2012-3-19
最后登录
2018-7-8

楼主
子衿1219 发表于 2012-11-14 17:21:38 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
做广义线性模型时,logistic回归,其中offset是什么意思啊?例如:

   off <-  rep(log(sum(dat$yy)/n1.all) - log(sum(1-dat$yy)/n0.all),
length(dat[,1]))
   if (model==1) mod1 <- glm(yy ~ gg.m*gg.f, binomial, dat.all[[1]],
offset=off )

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:程序问答 logistic回归 logistic logisti ogistic 程序

沙发
DM小菜鸟 发表于 2015-1-4 15:11:21
偏移量

英文说明是这样的——This can be used to specify an a priori known component to be included in the linear predictor during fitting. This should be NULL or a numeric vector of length equal to the number of cases.
One or more offset terms can be included in the formula instead or as well, and if more than one is specified their sum is used.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-22 14:26