楼主: duan__abc
3051 3

[学习分享] 关于linear mixed model 的R包为什么都不能指定随机变量方差的值? [推广有奖]

  • 1关注
  • 0粉丝

已卖:14份资源

本科生

58%

还不是VIP/贵宾

-

威望
0
论坛币
254 个
通用积分
0.0600
学术水平
0 点
热心指数
2 点
信用等级
0 点
经验
3915 点
帖子
137
精华
0
在线时间
30 小时
注册时间
2013-8-27
最后登录
2017-6-24

楼主
duan__abc 发表于 2013-9-8 11:14:35 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
R 中有很多包适用于linear mixed model,可是好像都不能想SAS中的Proc mixed 过程一样可以自设方差的值啊?
求大神们指点!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:mixed model Linear Mixed model Linea 混合模型 方差 proc mixed 统计

沙发
a_b_cd1 发表于 2013-9-8 11:36:48
同感!

藤椅
肉肠 发表于 2013-9-8 11:57:48
看看下面说的这几个吧

As for many other problems, there are several packages in R that let you deal with linear mixed models from a frequentist (REML) point of view. I will only mention nlme (Non-Linear Mixed Effects), lme4 (Linear Mixed Effects) and asreml (average spatial reml). There are also several options for Bayesian approaches, but that will be another post.

nlme is the most mature one and comes by default with any R installation. In addition to fitting hierarchical generalized linear mixed models it also allows fitting non-linear ones. Its main advantages are, in my humble opinion, the ability to fit fairly complex hierarchical models using linear or non-linear approaches, a good variety of variance and correlation structures, and access to several distributions and link functions for generalized models. In my opinion, its main drawbacks are i- fitting cross-classified random factors is a pain, ii- it can be slow and may struggle with lots of data, iii- it does not deal with pedigrees by default and iv- it does not deal with multivariate data.

lme4 is a project led by Douglas Bates (one of the co-authors of nlme), looking at modernizing the code and making room for trying new ideas. On the positive side, it seems to be a bit faster than nlme and it deals a lot better with cross-classified random factors. Drawbacks: similar to nlme’s, but dropping point i- and adding that it doesn’t deal with covariance and correlation structures yet. It is possible to fit pedigrees using the mmpedigree package, but I find the combination a bit flimsy.

ASReml-R is, unsurprisingly, an R package interface to ASReml. On the plus side it i- deals well with cross-classified random effects, ii- copes very well with pedigrees, iii- can work with fairly large datasets, iv-can run multivariate analyses and v- covers a large number of covariance and correlation structures. Main drawbacks are i- limited functionality for non-Gaussian responses, ii- it does not cover non-linear models and iii- it is non-free (as in beer an speech). The last drawback is relative; it is possible to freely use asreml for academic purposes (and there is also a version for developing countries). Besides researchers, the main users of ASReml/asreml-r are breeding companies.

All these three packages are available in Windows, Linux and OS X.

板凳
duan__abc 发表于 2013-9-8 12:10:40
谢谢,对这些包的一个不错的介绍
但是这些介绍都未提到自设方差的问题

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-26 05:04