| 查看: 430 | 回复: 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? 谢谢! |
» 猜你喜欢
Cas 72-43-5需要30g,定制合成,能接单的留言
已经有8人回复
求助:我三月中下旬出站,青基依托单位怎么办?
已经有6人回复
北京211副教授,35岁,想重新出发,去国外做博后,怎么样?
已经有8人回复
磺酰氟产物,毕不了业了!
已经有5人回复
论文终于录用啦!满足毕业条件了
已经有25人回复
2026年机械制造与材料应用国际会议 (ICMMMA 2026)
已经有3人回复
自荐读博
已经有3人回复
不自信的我
已经有5人回复
投稿Elsevier的杂志(返修),总是在选择OA和subscription界面被踢皮球
已经有8人回复

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









回复此楼