楼主: 耕耘使者
1967 8

[问答] 为什么factor能改变残差? [推广有奖]

贵宾

已卖:5006份资源

学术权威

39%

还不是VIP/贵宾

-

威望
4
论坛币
1811021 个
通用积分
171.7911
学术水平
109 点
热心指数
173 点
信用等级
87 点
经验
93428 点
帖子
4549
精华
0
在线时间
2848 小时
注册时间
2006-4-6
最后登录
2025-7-12

楼主
耕耘使者 发表于 2014-4-1 19:20:28 |AI写论文
61论坛币
TT截图未命名.jpg
如图,谢谢!

最佳答案

hugebear 查看完整内容

if the SD variable is inherently continuous, it contributes to reduce 1 degree of freedom of SSE. After you do, say, sd
关键词:factor Facto fact ACT CTO factor

沙发
hugebear 发表于 2014-4-1 19:20:29
if the SD variable is inherently continuous, it contributes to reduce 1 degree of freedom of SSE.
After you do, say, sd <- factor(SD), it contributes to reduce nlevels(SD) - 1 degrees of freedom of SSE.
This is a somewhat technical issue, you are suggested reading section 6.2 Model Formulae and Model Matrices of MASS by Venables and Ripley.
已有 1 人评分学术水平 热心指数 收起 理由
耕耘使者 + 1 + 1 观点有启发

总评分: 学术水平 + 1  热心指数 + 1   查看全部评分

藤椅
nuomin 发表于 2014-4-1 20:14:01
又见61论坛币,哈哈
用factor将SD变量转化为虚拟变量没有改进模型
已有 1 人评分学术水平 热心指数 收起 理由
耕耘使者 + 1 + 1 热心帮助其他会员

总评分: 学术水平 + 1  热心指数 + 1   查看全部评分

板凳
耕耘使者 发表于 2014-4-1 20:18:58
nuomin 发表于 2014-4-1 20:14
又见61论坛币,哈哈
用factor将SD变量转化为虚拟变量没有改进模型
哈哈,又见高人
关键疑问是,factor在这里起什么作用。您指出,factor将sd变量转化为虚拟变量,我似懂非懂,半懂不懂。
您知道这些变量来自哪个数据集吗?
我查看一下数据集,结合您的回答,或许会弄明白的。
谢谢!

报纸
nuomin 发表于 2014-4-1 21:25:35
很惭愧,我不是高手。你用这个模型要想解决什么问题啊?我没有接触过广义线性可加模型。
已有 1 人评分热心指数 收起 理由
耕耘使者 + 1 热心帮助其他会员

总评分: 热心指数 + 1   查看全部评分

地板
耕耘使者 发表于 2014-4-2 11:06:30
nuomin 发表于 2014-4-1 21:25
很惭愧,我不是高手。你用这个模型要想解决什么问题啊?我没有接触过广义线性可加模型。
没别的意思,只是想了解factor这在里的确切作用。
我上网查了,没有找到LGAclaims这个数据集,更奇怪的是,也没找到gamlss的帮助信息。

7
Aharach 发表于 2014-4-3 02:20:08
耕耘使者 发表于 2014-4-2 11:06
没别的意思,只是想了解factor这在时原确切作用。
我上网查了,没有找到LGAclaims这个数据集,更奇怪的是 ...
gamlss 这个函数就是在gamlss package里面的。下面是帮助信息:
gamlss {gamlss}        R Documentation
Generalized Additive Models for Location Scale and Shape

Description

Returns an object of class "gamlss", which is a generalized additive model for location scale and shape (GAMLSS). The function gamlss() is very similar to the gam() function in S-plus (now also in R in package gam), but can fit more distributions (not only the ones belonging to the exponential family) and can model all the parameters of the distribution as functions of the explanatory variables (e.g. using linear, non-linear, smoothing, loess and random effects terms).

This implementation of gamlss() allows modelling of up to four parameters in a distribution family, which are conventionally called mu, sigma, nu and tau.

The function gamlssNews() shows what is new in the current implementation.

具体的帮助文档我就不贴出来了。
已有 1 人评分学术水平 热心指数 收起 理由
耕耘使者 + 1 + 1 热心帮助其他会员

总评分: 学术水平 + 1  热心指数 + 1   查看全部评分

8
耕耘使者 发表于 2014-4-3 08:57:09
Aharach 发表于 2014-4-3 02:20
gamlss 这个函数就是在gamlss package里面的。下面是帮助信息:
gamlss {gamlss}        R Documentation
Gene ...
多谢朋友解惑!

9
耕耘使者 发表于 2014-4-3 08:57:46
hugebear 发表于 2014-4-3 02:44
if the SD variable is inherently continuous, it contributes to reduce 1 degree of freedom of SSE.
A ...
明白了一些,谢谢!

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-8 18:09