混合线性模型如何计算R2: marginal and conditional r squared values

本文介绍了一种由Nakagawa等人提出的计算混合线性模型中边际和条件R2值的方法,该方法分别考虑固定效应和同时考虑固定及随机效应的变异解释比例。通过r2()函数实现,适用于lme4和glmmTMB包拟合的模型。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

文献:

Nakagawa S , Johnson P C D , Schielzeth H . The coefficient of determination R(2) and intra-class correlation coefficient from generalized linear mixed-effects models revisited and expanded.[J]. Journal of the Royal Society Interface, 2017, 14(134):20170213.

在这里插入图片描述

  • marginal r-squared values, 计算仅仅考虑固定因子的R2
  • conditional r-squared values, 同时考虑固定因子和随机因子的R2

具体解释如下:

Nakagawa et al. (2017) proposed a method to compute marginal and conditional r-squared values, which is implemented in the r2()-function. For mixed models, the marginal r-squared considers only the variance of the fixed effects, while the conditional r-squared takes both the fixed and random effects into account. r2() can be used with models fitted with the functions of the lme4 and glmmTMB packages.

相关阅读

混合线性模型如何检测固定因子和随机因子的显著性以及计算R2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值