| 查看: 571 | 回复: 1 | ||
[求助]
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? 谢谢! |
» 猜你喜欢
申请科研项目纯靠实力能成功吗?
已经有8人回复
中科院海洋所招收海洋材料相关领域博士研究生及研究助理
已经有4人回复
40+中年人失业后,还能找到好工作吗?
已经有3人回复
二审4个多月了还是Awaiting Reviewer Scores
已经有4人回复
OpenAI又攻克数学难题了,离AI做有机合成还有多远?
已经有13人回复
极限拉扯,如何抉择
已经有14人回复
课题组会帮你通过考核么?
已经有7人回复
入职后第一次管课题组的专利缴费,对账才发现官费比别人多掏了一倍
已经有6人回复
售一区SCI文章T0P,我:8O.551.O54,科目全,可十急
已经有9人回复
售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急
已经有10人回复

2楼2013-11-01 13:44:25










回复此楼
200