请选择 进入手机版 | 继续访问电脑版
楼主: aganmin
42825 8

glm和lm的区别是什么 [推广有奖]

  • 0关注
  • 0粉丝

初中生

85%

还不是VIP/贵宾

-

威望
0
论坛币
72 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
170 点
帖子
19
精华
0
在线时间
14 小时
注册时间
2006-10-28
最后登录
2019-5-8

aganmin 发表于 2009-7-6 22:01:11 |显示全部楼层 |坛友微信交流群

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
fit<-glm(y~-1+x1+x2+xu1+xu2,family=gaussian,data=mydata,weights=w0)
这句是什么意思?
glm和lm的区别是什么
二维码

扫码加我 拉你入群

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

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

关键词:fit GLM

回帖推荐

ruiqwy 发表于5楼  查看完整内容

做简单线性回归,没区别。但glm比lm功能强大,可以做离散因变量模型等。

fincomputing 发表于2楼  查看完整内容

glm(stats) R Documentation Fitting Generalized Linear Models Description glm is used to fit generalized linear models, specified by giving a symbolic description of the linear predictor and a description of the error distribution. Usage glm(formula, family = gaussian, data, weights, subset, na.action, start = NULL, etastart, mustart, offset, control = glm.control(...), mo ...

本帖被以下文库推荐

glm(stats)  

R Documentation

Fitting Generalized Linear Models
Description
glm is used to fit generalized linear models, specified by giving a symbolic description of the linear predictor and a description of the error distribution.

Usage
glm(formula, family = gaussian, data, weights, subset,
    na.action, start = NULL, etastart, mustart,
    offset, control = glm.control(...), model = TRUE,
    method = "glm.fit", x = FALSE, y = TRUE, contrasts = NULL,
    ...)

glm.fit(x, y, weights = rep(1, nobs),
        start = NULL, etastart = NULL, mustart = NULL,
        offset = rep(0, nobs), family = gaussian(),
        control = glm.control(), intercept = TRUE)

## S3 method for class 'glm':
weights(object, type = c("prior", "working"), ...)
数量化投资管理,中国式Quant

使用道具

aganmin 发表于 2009-7-6 22:06:22 |显示全部楼层 |坛友微信交流群
还是不懂 啊

使用道具

awing 发表于 2009-7-7 00:35:44 |显示全部楼层 |坛友微信交流群
aganmin 发表于 2009-7-6 22:01
fit
在这个例子中,没有本质区别。

使用道具

ruiqwy 发表于 2009-7-8 11:40:04 |显示全部楼层 |坛友微信交流群
做简单线性回归,没区别。但glm比lm功能强大,可以做离散因变量模型等。
已有 2 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
雪凤夏洛 + 1 + 1 + 1 精彩帖子
crystal8832 + 10 + 1 热心帮助其他会员

总评分: 论坛币 + 10  学术水平 + 1  热心指数 + 2  信用等级 + 1   查看全部评分

R is the second language for me!Using R is standing on the shoulders of giants!   Let\'s use R together!

使用道具

v09huide 发表于 2010-3-29 19:39:05 |显示全部楼层 |坛友微信交流群
谢谢楼上讲解~

使用道具

trier2006 发表于 2010-3-30 08:25:05 |显示全部楼层 |坛友微信交流群
5# ruiqwy

re
最好的医生是自己,最好的药物是时间……

使用道具

wanglao 发表于 2017-11-17 16:31:18 |显示全部楼层 |坛友微信交流群
## S3 method for class 'glm':这句话是什么意思啊?S3代表什么?看到好多函数使用说明中有这个,另外,glm前面加上class表示什么?

使用道具

糯米JI 发表于 2017-11-17 21:56:54 |显示全部楼层 |坛友微信交流群
glm是广义线性回归函数,当然你也可以用它来做线性回归
lm是线性回归函数,不能拟合广义线性回归模型

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-17 05:29