| 查看: 524 | 回复: 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? 谢谢! |
» 猜你喜欢
基础研究怎么拉横向,学校到款任务越来越多,难以完成 拉横向,都有哪些途径啊
已经有6人回复
HXDI做水性聚氨酯乳液,是不是特别容易出渣
已经有3人回复
小木虫看见有人已经知道结果了
已经有19人回复
2026年国自然面上资助率
已经有8人回复
系统今天又提示维护了,估计离放榜不远了
已经有15人回复
微信指数没变化,科研之友没阅读
已经有17人回复
申请2027年材料/化学类博士
已经有5人回复
你们的时间戳变了吗
已经有4人回复
今年的WR进展到哪一步了?
已经有9人回复
产物和副产物价值比较
已经有5人回复

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










回复此楼