24小时热门版块排行榜    

查看: 450  |  回复: 1

clivia

金虫 (小有名气)

[求助] R求助

最近用R处理数据,有以下几个问题问高手:
1,You used a linear model. This assumes that your data (the residuals) are normally distributed? If not, have you tried to transform the residuals so that they are normally distributed? If residuals are not normally distributed and cannot be transformed so that they become normally distributed, have you tried a generalized linear model (GLM) with an appropriate error structure (given by the "family"-command in glm - in R: model <- glm (y ~ x), family= "gaussian / binomial / Gamma / etc."
对于统计数据中有缺失的部分,我一律用R代替,请问如何判断这些数值的出现是否为"gaussian / binomial / Gamma ?还是要一个一个尝试?
gaussian / binomial / Gamma 怎么体现在R语句中?具体怎么操作?

2, What y and what x did you use in "lm(formula = y ~ x)"? You can use several explanatory variables (x) in a lm or glm but only one response variable (y)?

3,With the ratio of annual species and perennial species, I suggest that you use the logarithm of this ratio: log (annuals / perennials) - this is usually done with ratio-data
对于较小的数值(0—1之间),一般取log,请问是取什么为底的函数?10,2, 还是e?
谢谢!
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

向日葵angle

新虫 (小有名气)

【答案】应助回帖

感谢参与,应助指数 +1
我们做生态的时候较小的数一般取e为底的对数。
能飞的时候不要放弃飞
2楼2013-11-01 13:44:25
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 clivia 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 293求调剂 +4 zjl的号 2026-03-16 5/250 2026-03-17 09:46 by peike
[考研] 271求调剂 +11 生如夏花… 2026-03-11 13/650 2026-03-17 09:02 by 雾散后相遇lc
[考研] 274求调剂 +5 时间点 2026-03-13 5/250 2026-03-17 07:34 by 热情沙漠
[考研] 一志愿211 0703方向310分求调剂 +3 努力奋斗112 2026-03-15 3/150 2026-03-16 16:44 by houyaoxu
[考研] 中科院材料273求调剂 +4 yzydy 2026-03-15 4/200 2026-03-16 15:59 by Gaodh_82
[考研] 0703化学调剂,求各位老师收留 +8 秋有木北 2026-03-14 8/400 2026-03-16 15:21 by 哦哦123
[考研] 070303 总分349求调剂 +3 LJY9966 2026-03-15 5/250 2026-03-16 14:24 by xwxstudy
[考研] 308求调剂 +3 是Lupa啊 2026-03-16 3/150 2026-03-16 10:07 by 求调剂zz
[考研] 290求调剂 +5 孔志浩 2026-03-12 10/500 2026-03-16 09:01 by 余晖&
[考研] 070305求调剂 +3 mlpqaz03 2026-03-14 4/200 2026-03-15 11:04 by peike
[考研] 一志愿华中农业大学071010,总分三百二,求调剂 +3 困困困困坤坤 2026-03-10 3/150 2026-03-14 00:35 by JourneyLucky
[考研] 一志愿湖师大化学289求调剂 +6 XMCMM3.14159 2026-03-10 6/300 2026-03-14 00:28 by JourneyLucky
[考研] 327求调剂 +4 Ffff03 2026-03-10 4/200 2026-03-14 00:17 by JourneyLucky
[考研] 一志愿西南交大,材料专硕317求调剂 +5 lx8568 2026-03-11 5/250 2026-03-13 21:43 by peike
[考研] 314求调剂 +7 无懈可击的巨人 2026-03-12 7/350 2026-03-13 15:40 by JourneyLucky
[考研] 308求调剂 +3 是Lupa啊 2026-03-12 3/150 2026-03-13 14:30 by 求调剂zz
[考研] 296求调剂 +3 大口吃饭 身体健 2026-03-13 3/150 2026-03-13 10:31 by 学员8dgXkO
[考研] 283求调剂,材料、化工皆可 +8 苏打水7777 2026-03-11 10/500 2026-03-13 09:06 by Linda Hu
[考研] 298求调剂 +3 Vv呀! 2026-03-10 3/150 2026-03-10 22:40 by 剑诗杜康
[考研] 一志愿:武汉理工,材料工程,英二数二 总分314 +3 2202020125 2026-03-10 4/200 2026-03-10 13:54 by xiongyaxuan
信息提示
请填处理意见